2023-08-13 17:00:41 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-04-07 21:48:47 +01:00
|
|
|
boot = {
|
2023-08-13 17:00:41 +01:00
|
|
|
kernelModules = ["kvm-intel"];
|
2023-04-07 21:48:47 +01:00
|
|
|
|
|
|
|
initrd = {
|
2023-08-13 17:00:41 +01:00
|
|
|
kernelModules = ["dm-snapshot"];
|
|
|
|
availableKernelModules = ["xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
2023-04-07 21:48:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
loader.efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
};
|
|
|
|
|
2023-08-13 17:00:41 +01:00
|
|
|
boot.initrd.secrets = {"/crypto_keyfile.bin" = null;};
|
|
|
|
boot.initrd.luks.devices."luks-43a80125-4089-45be-9561-fab93f984916".device = "/dev/disk/by-uuid/43a80125-4089-45be-9561-fab93f984916";
|
2023-04-07 21:48:47 +01:00
|
|
|
|
|
|
|
fileSystems."/boot/efi" = {
|
|
|
|
device = "/dev/disk/by-uuid/D6C0-1A9D";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/98f3597c-183a-45fb-b2a4-b598c18d089a";
|
|
|
|
fsType = "btrfs";
|
2023-08-13 17:00:41 +01:00
|
|
|
options = ["subvol=@"];
|
2023-04-07 21:48:47 +01:00
|
|
|
};
|
|
|
|
|
2023-08-13 17:00:41 +01:00
|
|
|
swapDevices = [];
|
2023-04-07 21:48:47 +01:00
|
|
|
}
|