mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[General] Enable zram
This commit is contained in:
parent
d25c0db185
commit
69b13ee0ce
1 changed files with 7 additions and 0 deletions
|
|
@ -125,6 +125,13 @@ in
|
||||||
gcc.tune = cfg.cpuTune;
|
gcc.tune = cfg.cpuTune;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# zram is so usefull, we should always have it enabled.
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
priority = 10000;
|
||||||
|
memoryPercent = 100;
|
||||||
|
algorithm = "zstd";
|
||||||
|
};
|
||||||
nix.buildMachines = [
|
nix.buildMachines = [
|
||||||
(mkBuildMachine {
|
(mkBuildMachine {
|
||||||
hostName = "luke-skywalker-nixos.local";
|
hostName = "luke-skywalker-nixos.local";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue