sourcephile
/
git
/
sourcephile-nix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unbound: no longer use nixos/profiles
[sourcephile-nix.git]
/
nixos
/
profiles
/
systems
/
zramSwap.nix
diff --git
a/nixos/profiles/systems/zramSwap.nix
b/nixos/profiles/systems/zramSwap.nix
index bdc7ca7caf1945fee065ab2ef3189be9f0f8f9bb..4950175fd40ffb06c96af601572c69ac838dd688 100644
(file)
--- a/
nixos/profiles/systems/zramSwap.nix
+++ b/
nixos/profiles/systems/zramSwap.nix
@@
-4,6
+4,8
@@
zramSwap = {
enable = true;
algorithm = lib.mkDefault "zstd";
memoryPercent = lib.mkDefault 50;
+ # Linux supports multithreaded compression for 1 device since 3.15.
+ # See https://lkml.org/lkml/2014/2/28/404 for details.
swapDevices = lib.mkDefault 1;
};