mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[General] disable zram-swap in favor of using zswap (which is made for this)
This commit is contained in:
parent
a1151262dd
commit
769ec1ae76
1 changed files with 4 additions and 8 deletions
12
general.nix
12
general.nix
|
|
@ -117,18 +117,14 @@ in
|
||||||
|
|
||||||
aviallon.boot.cmdline = mkIf cfg.unsafeOptimizations {
|
aviallon.boot.cmdline = mkIf cfg.unsafeOptimizations {
|
||||||
mitigations = "off";
|
mitigations = "off";
|
||||||
|
"zswap.enabled" = "Y";
|
||||||
|
"zswap.shrinker_enabled" = "Y";
|
||||||
|
"zswap.compressor" = "zstd";
|
||||||
|
"zswap.pool" = "zsmalloc";
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = mkDefault "schedutil";
|
powerManagement.cpuFreqGovernor = mkDefault "schedutil";
|
||||||
|
|
||||||
# zram is so usefull, we should always have it enabled.
|
|
||||||
zramSwap = {
|
|
||||||
enable = true;
|
|
||||||
priority = 10000;
|
|
||||||
memoryPercent = 100;
|
|
||||||
algorithm = "zstd";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.noXlibs = mkIf (cfg.minimal && (!desktopCfg.enable)) true;
|
environment.noXlibs = mkIf (cfg.minimal && (!desktopCfg.enable)) true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue