1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: add zramfs as swap

This commit is contained in:
2020-11-10 22:17:47 +01:00
parent 218c251d31
commit acec2505e4
4 changed files with 4 additions and 11 deletions

View File

@@ -16,6 +16,7 @@
};
swapDevices = [ ];
zramSwap.enable = true;
nix.maxJobs = lib.mkDefault 2;
}

View File

@@ -26,6 +26,7 @@
};
swapDevices = [ ];
zramSwap.enable = true;
boot.loader.grub = {
enable = true;

View File

@@ -9,8 +9,5 @@
};
};
swapDevices = [{
device = "/swapfile";
size = 1024;
}];
zramSwap.enable = true;
}

View File

@@ -18,13 +18,7 @@
fsType = "vfat";
};
swapDevices = [
{
device = "/swapfile";
priority = 0;
size = 4096;
}
];
zramSwap.enable = true;
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";