swapfile for server

This commit is contained in:
Satria 2026-03-03 15:25:13 +07:00
commit f2373abdc2
4 changed files with 10 additions and 16 deletions

View file

@ -0,0 +1,6 @@
{ swapfile, ... }: {
swapDevices = if swapfile == 0 then [] else [{
device = "/swapfile";
size = swapfile;
}];
}