Unverified Commit af3321b3 authored by NAHO's avatar NAHO
Browse files

nixos/zram: prevent implicitly disabling negative-sized ZRAM

Prevent implicitly disabling a negative-sized ZRAM because disabling the
ZRAM should probably always be done by disabling the zrawmSwap.enable
option.

Fixes: cd1b48bc ("nixos: Add zram swap module")
parent fffba491
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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