zephyrus: enable swapfile
This commit is contained in:
parent
afa86b08f7
commit
99f2ef62a3
|
@ -48,7 +48,18 @@ in {
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [];
|
fileSystems."/swap" = {
|
||||||
|
device = "/dev/disk/by-uuid/6395cef1-c30b-450a-917c-cfb3c0380642";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = ["subvol=@swap" "compress=zstd" "noatime"];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/swap/swapfile";
|
||||||
|
size = 1024 * 8; # half of RAM size
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = mkDefault "powersave";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue