summaryrefslogtreecommitdiff
path: root/nixos/hardware/hardware-configuration.nix
diff options
context:
space:
mode:
authorqaristote <quentin.aristote@ens.fr>2023-03-16 11:47:11 +0100
committerqaristote <quentin.aristote@ens.fr>2023-03-16 11:47:11 +0100
commit7417d85ee2f268c8e1aa36a86fe271891eebbb89 (patch)
treeb2562ba1989f116aa065b760f05df27bd686e051 /nixos/hardware/hardware-configuration.nix
parentace3d178fbf141c3d6e44b415d43dad46a5d85b8 (diff)
initial commit
Diffstat (limited to 'nixos/hardware/hardware-configuration.nix')
-rw-r--r--nixos/hardware/hardware-configuration.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/hardware/hardware-configuration.nix b/nixos/hardware/hardware-configuration.nix
index e264459..2bb7dc1 100644
--- a/nixos/hardware/hardware-configuration.nix
+++ b/nixos/hardware/hardware-configuration.nix
@@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix")
];
- boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+ boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "ahci" "nvme" "usb_storage" "uas" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
@@ -24,7 +24,7 @@
};
swapDevices =
- [ { device = "/dev/disk/by-uuid/cc2b2f1e-1c41-4b3e-9432-81f75d40a892"; }
+ [ { device = "/dev/disk/by-uuid/2fac760d-6eaf-4a75-ab11-52e91c6c30ab"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
@@ -33,8 +33,9 @@
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
- # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
+ # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}