try to configure swapfile

This commit is contained in:
Dmitriy Pleshevskiy 2025-03-10 22:52:11 +03:00
parent bb92f8e28d
commit 91d54bd9ac
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
2 changed files with 13 additions and 0 deletions
hosts/home/hardware-configuration

View file

@ -3,6 +3,7 @@
{
imports = [
./generated.nix # Include the results of the hardware scan.
./manual.nix
./nfs.nix
];

View file

@ -0,0 +1,12 @@
{
swapDevices = [
{
device = "/var/lib/swapfile";
size = 64 * 1024;
}
];
boot.kernelParams = [
"resume=UUID=969c5f68-631d-4429-b81b-0d81e050449b"
];
}