diff --git a/nixos/modules/config/zram.nix b/nixos/modules/config/zram.nix index c1958d3b47ba..44db5ce9d641 100644 --- a/nixos/modules/config/zram.nix +++ b/nixos/modules/config/zram.nix @@ -49,7 +49,7 @@ in memoryPercent = lib.mkOption { default = 50; - type = lib.types.int; + type = lib.types.ints.positive; description = '' Maximum total amount of memory that can be stored in the zram swap devices (as a percentage of your total memory). Defaults to 1/2 of your total