2022-03-16 16:04:22 +01:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
2025-12-28 13:39:42 +01:00
|
|
|
}:
|
|
|
|
|
{
|
2022-03-16 16:04:22 +01:00
|
|
|
imports = [
|
2022-03-29 00:21:16 +02:00
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
2022-03-16 16:04:22 +01:00
|
|
|
];
|
|
|
|
|
|
2022-03-29 00:21:16 +02:00
|
|
|
boot = {
|
|
|
|
|
loader = {
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
consoleMode = "max";
|
|
|
|
|
};
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
|
|
|
|
initrd = {
|
2025-12-28 13:39:42 +01:00
|
|
|
availableKernelModules = [
|
|
|
|
|
"xhci_pci"
|
|
|
|
|
"ehci_pci"
|
|
|
|
|
"ahci"
|
|
|
|
|
"firewire_ohci"
|
|
|
|
|
"usb_storage"
|
|
|
|
|
"sd_mod"
|
|
|
|
|
"sr_mod"
|
|
|
|
|
"sdhci_pci"
|
|
|
|
|
];
|
|
|
|
|
kernelModules = [ "dm-snapshot" ];
|
2022-03-29 00:21:16 +02:00
|
|
|
luks.devices.luksmap.device = "/dev/disk/by-uuid/b7d66981-8cb7-4aad-a595-ee6574b312cf";
|
|
|
|
|
};
|
2025-12-28 13:39:42 +01:00
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
|
extraModulePackages = [ ];
|
2022-03-29 00:21:16 +02:00
|
|
|
};
|
2022-03-16 16:04:22 +01:00
|
|
|
|
2022-03-30 18:29:16 +02:00
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/e9a8bd34-61eb-4317-888d-bd7d6248a906";
|
|
|
|
|
fsType = "xfs";
|
|
|
|
|
};
|
|
|
|
|
"/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/9B2F-31E1";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2022-03-29 00:21:16 +02:00
|
|
|
};
|
2022-03-16 16:04:22 +01:00
|
|
|
|
2022-03-29 00:21:16 +02:00
|
|
|
swapDevices = [
|
|
|
|
|
{
|
|
|
|
|
device = "/swapfile";
|
|
|
|
|
size = 2048;
|
|
|
|
|
}
|
|
|
|
|
];
|
2022-03-16 16:04:22 +01:00
|
|
|
|
2022-03-29 00:21:16 +02:00
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2022-03-16 16:04:22 +01:00
|
|
|
}
|