NixFiles/systems/mdesktop/boot.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

2023-03-09 08:33:38 +00:00
{ config, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
# Setup bootloader
2023-09-30 22:27:40 +01:00
boot.loader.systemd-boot = {
enable = true;
consoleMode = "max";
};
2023-03-09 08:33:38 +00:00
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.initrd.systemd.enable = true;
2023-03-09 08:33:38 +00:00
# Setup crypto keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
# Enable LUKS boot devices
boot.initrd.luks.devices."luks-c180a121-376a-432e-a661-f4be3cc23dfa".device = "/dev/disk/by-uuid/c180a121-376a-432e-a661-f4be3cc23dfa";
boot.initrd.luks.devices."luks-16dda63d-9dce-4ef2-9da6-ee458ba3c44c".device = "/dev/disk/by-uuid/16dda63d-9dce-4ef2-9da6-ee458ba3c44c";
boot.initrd.luks.devices."luks-c180a121-376a-432e-a661-f4be3cc23dfa".keyFile = "/crypto_keyfile.bin";
2023-10-07 10:30:12 +01:00
# Kernel settings
2023-03-09 08:33:38 +00:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
2023-10-07 10:30:12 +01:00
boot.kernelParams = [ "video=2560x1440@180" ];
2023-03-09 08:33:38 +00:00
boot.extraModulePackages = [ ];
# Use the linux-zen kernel
boot.kernelPackages = pkgs.linuxPackages_zen;
}