mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-01 13:29:13 +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:
parent
36a9aeaaa1
commit
1edbc4fa0d
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
upsmon = mkOption {
|
upsmon = mkOption {
|
||||||
type = with types; nullOr str;
|
type = with types; nullOr (enum [ "primary" "secondary" ]);
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
Add the necessary actions for a upsmon process to work.
|
Add the necessary actions for a upsmon process to work.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue