-
Notifications
You must be signed in to change notification settings - Fork 1
/
boot.nix
executable file
·38 lines (35 loc) · 1.24 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
35
36
37
38
{ config, pkgs, lib, ... }:
{
# Use the GRUB 2 boot loader.
# loader.grub.enable = true;
# loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.supportedFilesystems = [ "zfs" ];
supportedFilesystems = [ "zfs" ];
zfs = {
requestEncryptionCredentials = true;
devNodes = "/dev/";
};
# Define on which hard drive you want to install Grub.
loader.grub.device = "/dev/sda"; # or "nodev" for efi only
# [ "tun" "virtio" "cpufreq_stats" "acpi" "thinkpad-acpi" "tp_acpi" ];
kernelParams = # pkgs.linuxPackages_latest ++
[
"amgpu.noretry=0"
"amdgpu.lockup_timeout=1000"
"amdgpu.gpu_recovery=1"
"amdgpu.audio=0"
"amdgpu.runpm=0"
"iommu=soft:w"
];
initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "thinkpad_acpi" "rtsx_pci_sdmmc"];
initrd.kernelModules = [ "acpi_call" "thinkpad-acpi" ];
kernelModules = [ "kvm-amd" "overlay" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
}