Unverified Commit 770a8a67 authored by h7x4's avatar h7x4
Browse files

nixos/tinc: prefer `types.ints` over `addCheck`

parent 85077ec2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ let
      };

      prefixLength = mkOption {
        type = with types; nullOr (addCheck int (n: n >= 0 && n <= 128));
        type = with types; nullOr (ints.between 0 128);
        default = null;
        description = ''
          The prefix length of the subnet.
@@ -227,7 +227,7 @@ in

                  debugLevel = mkOption {
                    default = 0;
                    type = types.addCheck types.int (l: l >= 0 && l <= 5);
                    type = types.ints.between 0 5;
                    description = ''
                      The amount of debugging information to add to the log. 0 means little
                      logging while 5 is the most logging. {command}`man tincd` for