{ config, lib, pkgs, ... }: { imports = [ ]; # https://bugzilla.kernel.org/show_bug.cgi?id=110941 boot.kernelParams = [ "intel_pstate=no_hwp" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ]; boot.extraModprobeConfig = '' options thinkpad_acpi fan_control=1 ''; boot.loader.grub = { enable = true; version = 2; device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX0K863141Y"; #enableCryptodisk = true; }; boot.initrd.availableKernelModules = [ "aes_x86_64" "aesni_intel" "ahci" "cryptd" "dm_crypt" "dm_mod" "drbg" "ehci_pci" "gf128mul" "hmac" "sd_mod" "sha256_generic" "uas" "xts" ]; boot.initrd.luks.cryptoModules = ["aes_x86_64" "sha256" "sha1" "xts"]; boot.initrd.luks.devices = [ { name = "crypted"; device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX0K863141Y-part2"; allowDiscards = true; #preLVM = false; } ]; boot.kernel.sysctl = { "vm.swappiness" = 10; "vm.vfs_cache_pressure" = 50; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/8f84431f-f646-4da9-9f34-af0f7d9bb914"; fsType = "ext4"; }; fileSystems."/" = { device = "/dev/disk/by-uuid/30c38c75-4fc7-4185-a7db-b5e2c989e853"; fsType = "ext4"; options = [ "noatime" "nodiratime" "discard" ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/62ca342a-9c6e-47bf-9eac-bc8c28b491bb"; fsType = "ext4"; options = [ "noatime" "nodiratime" "discard" ]; }; swapDevices = [ { device = "/dev/disk/by-uuid/27af6bf3-5884-49aa-aa5b-dae43c2fd634"; } ]; nix.maxJobs = lib.mkDefault 4; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; }