diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-05-22 04:30:03 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 21:30:03 +0300 |
commit | f4852591c1e2050ff3b12861f3950e36e15380be (patch) | |
tree | 7de165ce25d1dd0d5f6cb716215d981d2e30790f /nixos | |
parent | 927b7795cbaf1ee045f2def83bb455cf7e8b75c4 (diff) | |
download | nixlib-f4852591c1e2050ff3b12861f3950e36e15380be.tar nixlib-f4852591c1e2050ff3b12861f3950e36e15380be.tar.gz nixlib-f4852591c1e2050ff3b12861f3950e36e15380be.tar.bz2 nixlib-f4852591c1e2050ff3b12861f3950e36e15380be.tar.lz nixlib-f4852591c1e2050ff3b12861f3950e36e15380be.tar.xz nixlib-f4852591c1e2050ff3b12861f3950e36e15380be.tar.zst nixlib-f4852591c1e2050ff3b12861f3950e36e15380be.zip |
nixos/zram: make zstd the default (#87917)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2009.xml | 5 | ||||
-rw-r--r-- | nixos/modules/config/zram.nix | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml index 8701b395576b..a4c2719d0445 100644 --- a/nixos/doc/manual/release-notes/rl-2009.xml +++ b/nixos/doc/manual/release-notes/rl-2009.xml @@ -432,6 +432,11 @@ systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ]; The default output of <literal>buildGoPackage</literal> is now <literal>$out</literal> instead of <literal>$bin</literal>. </para> </listitem> + <listitem> + <para> + Default algorithm for ZRAM swap was changed to <literal>zstd</literal>. + </para> + </listitem> </itemizedlist> </section> </section> diff --git a/nixos/modules/config/zram.nix b/nixos/modules/config/zram.nix index 5d411c73a560..5e9870bf6b1c 100644 --- a/nixos/modules/config/zram.nix +++ b/nixos/modules/config/zram.nix @@ -91,7 +91,7 @@ in }; algorithm = mkOption { - default = "lzo"; + default = "zstd"; example = "lz4"; type = with types; either (enum [ "lzo" "lz4" "zstd" ]) str; description = '' |