hosts/sarien: add swap

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-29 11:14:02 +03:00
parent 391886ef59
commit f6f5121d1e
2 changed files with 20 additions and 0 deletions

View File

@ -29,6 +29,20 @@
command = "${pkgs.niri}/bin/niri-session"; command = "${pkgs.niri}/bin/niri-session";
}; };
zramSwap.enable = true;
swapDevices = [
{
device = "/swap/swapfile";
size = 4 * 1024;
priority = 100;
}
{
device = "/swap/hibernate";
size = 16 * 1024;
priority = 0;
}
];
module = { module = {
config = { config = {
laptop.homeRowMods = true; laptop.homeRowMods = true;

View File

@ -61,6 +61,12 @@
"noatime" "noatime"
]; ];
}; };
"@swap" = {
mountpoint = "/swap";
mountOptions = [
"noatime"
];
};
}; };
}; };
}; };