add swapfile os module and enable swap for hs
All checks were successful
/ build-all (push) Successful in 1m6s
All checks were successful
/ build-all (push) Successful in 1m6s
This commit is contained in:
parent
87b3f3e5bd
commit
4d8c3fddd0
3 changed files with 11 additions and 5 deletions
9
os/swapfile.nix
Normal file
9
os/swapfile.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
sizeGiB:
|
||||
{
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/var/lib/swapfile";
|
||||
size = sizeGiB * 1024;
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue