1

System/Nixinator: Don't configure swapfile in disko

This commit is contained in:
2026-04-10 17:31:03 +02:00
parent 0fb5c79df4
commit f1ddccb0df
2 changed files with 5 additions and 3 deletions

View File

@ -82,7 +82,8 @@
};
"swap" = {
mountpoint = "/swap";
swap.swapfile.size = "16G";
# Configured in hardware-configuration.nix
# swap.swapfile.size = "64G";
};
};
};

View File

@ -131,8 +131,9 @@
swapDevices = [
{
device = "/var/swap";
size = 1024 * 16; # Without hibernation 4.0 GB to 0.5 x RAM
device = "/swap/swapfile";
size = 1024 * 64; # Without hibernation 4.0 GB to 0.5 x RAM
randomEncryption.enable = false; # The disk is already encrypted. Useless and might lead to system freeze.
}
];