about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorDaniel Fullmer <danielrf12@gmail.com>2024-04-16 13:51:54 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2024-04-16 15:39:31 -0700
commit68142254d20256e617f596a5d50f9950f98fa36a (patch)
tree5528ae9374833668d57be1041dfb6c253f8b5e16 /nixos/modules/config
parent3dfe42d78ebcd1bd1db073b55206a67c65fa93cd (diff)
nixos/zram: add compression algorithms to option enum
These options are available on a standard NixOS system, which can be
seeing by running `cat /sys/devices/virtual/block/zram0/comp_algorithm`.
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/zram.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/zram.nix b/nixos/modules/config/zram.nix
index 562485fcc823d..1846ac51eea6e 100644
--- a/nixos/modules/config/zram.nix
+++ b/nixos/modules/config/zram.nix
@@ -73,7 +73,7 @@ in
       algorithm = lib.mkOption {
         default = "zstd";
         example = "lz4";
-        type = with lib.types; either (enum [ "lzo" "lz4" "zstd" ]) str;
+        type = with lib.types; either (enum [ "842" "lzo" "lzo-rle" "lz4" "lz4hc" "zstd" ]) str;
         description = ''
           Compression algorithm. `lzo` has good compression,
           but is slow. `lz4` has bad compression, but is fast.