hardware-configuration.nix
1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 # and may be overwritten by future invocations. Please make changes 3 # to /etc/nixos/configuration.nix instead. 4 { 5 config, 6 lib, 7 pkgs, 8 modulesPath, 9 ... 10 }: { 11 imports = [ 12 (modulesPath + "/installer/scan/not-detected.nix") 13 ]; 14 15 boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; 16 boot.initrd.kernelModules = []; 17 boot.kernelModules = ["kvm-intel"]; 18 boot.extraModulePackages = []; 19 20 # fileSystems."/hdd" = { 21 # device = "/dev/disk/by-uuid/55b61e46-c049-45ba-94a0-38c345d22a01"; 22 # fsType = "btrfs"; 23 # }; 24 25 boot.initrd.luks.devices."nvme-crypt".device = "/dev/disk/by-partlabel/disk-nvme0n1-luks"; 26 boot.initrd.luks.devices."hdd-crypt".device = "/dev/disk/by-partlabel/disk-sda-luks"; 27 28 # swapDevices = []; 29 30 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 31 # (the default) this is the recommended approach. When using systemd-networkd it's 32 # still possible to use this option, but it's recommended to use it in conjunction 33 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 34 networking.useDHCP = lib.mkDefault true; 35 # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; 36 37 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 38 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 39 }