fwminex: swap

This commit is contained in:
Motiejus Jakštys 2023-09-14 07:43:18 +03:00
parent 90be8b6e5f
commit 1430bf9d6d
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
bootDevices = ["nvme-Samsung_SSD_970_EVO_Plus_2TB_S6P1NS0TA01331A"];
immutable = false;
forceNoDev2305 = true;
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" ];
availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usbhid"];
removableEfi = true;
partitionScheme = {
efiBoot = "-part1";
@ -71,7 +71,6 @@
enable = true;
email = "motiejus+alerts@jakstys.lt";
};
};
services = {
@ -97,7 +96,6 @@
user = "motiejus";
group = "users";
};
};
};

View File

@ -109,7 +109,9 @@ in {
map (diskName: diskName + cfg.partitionScheme.efiBoot)
cfg.bootDevices;
swapPartitions =
map (diskName: diskName + cfg.partitionScheme.swap) cfg.bootDevices;
if cfg.partitionScheme ? swap
then map (diskName: diskName + cfg.partitionScheme.swap) cfg.bootDevices
else [];
};
boot = {
kernelPackages =