{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; fileSystems."/" = { device = "/dev/disk/by-label/ROOT"; fsType = "btrfs"; options = [ "subvol=@" ]; }; boot.initrd.luks.devices."DISK".device = "/dev/nvme0n1p1"; fileSystems."/boot" = { device = "/dev/disk/by-label/BOOT"; fsType = "vfat"; }; # Enable Swap on LUKS boot.initrd.luks.devices."SWAP" = { device = "/dev/nvme0n1p2"; keyFile = "/crypto_keyfile.bin"; }; # Set up the keyfile boot.initrd.secrets."/crypto_keyfile.bin" = null; # Hibernation resume device boot.resumeDevice = "/dev/disk/by-label/SWAP"; # Confirm the swap devices swapDevices = [ { device = "/dev/disk/by-label/SWAP"; } ]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }