2023-08-13 17:00:41 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: {
|
2021-09-11 21:49:03 +01:00
|
|
|
boot = {
|
2023-08-13 17:00:41 +01:00
|
|
|
kernelModules = ["kvm-intel"];
|
2021-09-18 08:50:11 +01:00
|
|
|
|
|
|
|
initrd = {
|
2023-08-13 17:00:41 +01:00
|
|
|
kernelModules = ["dm-snapshot"];
|
|
|
|
availableKernelModules = ["ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod"];
|
2021-09-11 20:32:23 +01:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:31:15 +01:00
|
|
|
loader.grub.enable = true;
|
|
|
|
loader.grub.device = "/dev/sda";
|
2021-09-18 08:50:11 +01:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:31:15 +01:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/87ea2035-a966-4a06-8b66-e4ac366c3cb9";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
2021-09-11 20:32:23 +01:00
|
|
|
|
2023-08-13 17:00:41 +01:00
|
|
|
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d";
|
2021-09-18 08:50:11 +01:00
|
|
|
|
2021-09-18 10:31:15 +01:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317";
|
|
|
|
fsType = "ext2";
|
|
|
|
};
|
2021-09-11 20:32:23 +01:00
|
|
|
|
2023-08-13 17:00:41 +01:00
|
|
|
swapDevices = [];
|
2021-09-11 20:32:23 +01:00
|
|
|
|
2022-12-04 12:33:54 +00:00
|
|
|
nix.settings = {
|
|
|
|
max-jobs = 2;
|
|
|
|
cores = 2;
|
|
|
|
};
|
2021-09-18 08:50:11 +01:00
|
|
|
}
|