nixos/zram: prevent implicitly disabling negative-sized ZRAM (#444426)

authored by

Nick Cao and committed by
GitHub
6c50da4a 8280ee59

+1 -1
+1 -1
nixos/modules/config/zram.nix
··· 49 49 50 50 memoryPercent = lib.mkOption { 51 51 default = 50; 52 - type = lib.types.int; 52 + type = lib.types.ints.positive; 53 53 description = '' 54 54 Maximum total amount of memory that can be stored in the zram swap devices 55 55 (as a percentage of your total memory). Defaults to 1/2 of your total