Commit 1edbc4fa authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

nixos/ups: change upsmon option type from str to enum

According to `man upsd.users`, the option is 'either set to "primary" or
"secondary"'.
parent 36a9aeaa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ let
      };

      upsmon = mkOption {
        type = with types; nullOr str;
        type = with types; nullOr (enum [ "primary" "secondary" ]);
        default = null;
        description = ''
          Add the necessary actions for a upsmon process to work.