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

This commit is contained in:
Nick Cao
2025-09-21 16:59:08 +00:00
committed by GitHub
+1 -1
View File
@@ -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