1 { config, lib, pkgs, ... }: {
3 [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
6 # https://bugzilla.kernel.org/show_bug.cgi?id=110941
7 boot.kernelParams = [ "intel_pstate=no_hwp" ];
8 boot.kernelModules = [ "kvm-intel" ];
9 boot.extraModulePackages = [
10 config.boot.kernelPackages.exfat-nofuse
12 boot.extraModprobeConfig = ''
13 options thinkpad_acpi fan_control=1
19 device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX0K863141Y";
20 #enableCryptodisk = true;
23 boot.initrd.availableKernelModules = [
39 boot.initrd.luks.cryptoModules = ["aes_x86_64" "sha256" "sha1" "xts"];
40 boot.initrd.luks.devices = [
43 device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX0K863141Y-part2";
49 boot.kernel.sysctl = {
51 "vm.vfs_cache_pressure" = 50;
55 { device = "/dev/disk/by-uuid/8f84431f-f646-4da9-9f34-af0f7d9bb914";
61 device = "/dev/disk/by-uuid/30c38c75-4fc7-4185-a7db-b5e2c989e853";
63 options = [ "noatime" "nodiratime" "discard" ];
66 { device = "/dev/disk/by-uuid/62ca342a-9c6e-47bf-9eac-bc8c28b491bb";
68 options = [ "noatime" "nodiratime" "discard" ];
71 [ { device = "/dev/disk/by-uuid/27af6bf3-5884-49aa-aa5b-dae43c2fd634"; }
74 nix.maxJobs = lib.mkDefault 4;
75 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";