-
Notifications
You must be signed in to change notification settings - Fork 6
/
boot.nix
35 lines (34 loc) · 1.07 KB
/
boot.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
boot.blacklistedKernelModules = [ "psmouse" ];
boot.extraModprobeConfig = ''
options cfg80211 ieee80211_regdom="NL"
options iwlwifi power_save=1
options snd_hda_intel power_save=1
'';
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "rtsx_pci_sdmmc" ];
boot.initrd.compressor = "xz";
boot.initrd.kernelModules = [ "i915" ];
boot.initrd.luks.devices = {
nixps = {
crypttabExtraOpts = [ "tpm2-device=auto" ];
device = "/dev/disk/by-uuid/0cebcb03-e616-4d3b-8044-cd1715c4899d";
};
};
boot.initrd.systemd = { enable = true; emergencyAccess = true; };
boot.kernelModules = [ "kvm-intel" ];
boot.kernelParams = [
"quiet"
"i915.enable_fbc=1"
"i915.enable_guc=2"
"i915.enable_psr=2"
"i915.fastboot=1"
"i915.mitigations=off"
"i915.modeset=1"
"mitigations=off"
];
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.consoleMode = "1"; # bigger font in boot menu
boot.loader.timeout = 1;
boot.tmp.useTmpfs = true;
}