From 342155ced8fc78b608f23454cb631decb0b7be9b Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 3 Oct 2020 22:06:43 +0200 Subject: Update config --- hardware-configuration.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 hardware-configuration.nix (limited to 'hardware-configuration.nix') diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..84eb8cd --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,33 @@ +# ThinkPad X220 + +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ]; + + boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/e00c989b-b3fd-469e-b894-ea609fb4d7fa"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/2f0948cd-a0de-41c0-a341-e9fe01460fd3"; + fsType = "ext3"; + }; + + swapDevices = [ { + device = "/dev/sda2"; } ]; + + nix.maxJobs = lib.mkDefault 4; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} -- cgit 1.4.1