1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-30 21:15:21 +03:00

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

According to `man upsd.users`, the option is 'either set to "primary" or
"secondary"'.
This commit is contained in:
Bjørn Forsman 2024-08-22 21:09:27 +02:00
parent 36a9aeaaa1
commit 1edbc4fa0d

View file

@ -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.