diff options
| author | aristote <quentin.aristote@irif.fr> | 2024-05-29 19:27:53 +0200 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2024-05-29 19:27:53 +0200 |
| commit | 153e48111b97d15e784b1ef2ec44c7451905535b (patch) | |
| tree | c9da8b593e555f2e81445d392c15bab56ffaec21 /nixos/hardware/hardware-configuration.nix | |
| parent | c4005a4b2be584977805de8165ca7deeb05363cf (diff) | |
switch to use as home laptop
Diffstat (limited to 'nixos/hardware/hardware-configuration.nix')
| -rw-r--r-- | nixos/hardware/hardware-configuration.nix | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/nixos/hardware/hardware-configuration.nix b/nixos/hardware/hardware-configuration.nix index 2bb7dc1..f2960c6 100644 --- a/nixos/hardware/hardware-configuration.nix +++ b/nixos/hardware/hardware-configuration.nix @@ -1,31 +1,34 @@ # 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, modulesPath, ... }: - { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + config, + lib, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - 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 = [ ]; + 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 = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/c08fcfed-a250-4cda-b1d7-9483ea7b3136"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/c08fcfed-a250-4cda-b1d7-9483ea7b3136"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/5C58-7F16"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/5C58-7F16"; + fsType = "vfat"; + }; - swapDevices = - [ { device = "/dev/disk/by-uuid/2fac760d-6eaf-4a75-ab11-52e91c6c30ab"; } - ]; + swapDevices = [ + {device = "/dev/disk/by-uuid/2fac760d-6eaf-4a75-ab11-52e91c6c30ab";} + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's |
