From 1edbc4fa0dc6ea6b09201c731b4759ee91af32b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Thu, 22 Aug 2024 21:09:27 +0200 Subject: [PATCH] nixos/ups: change upsmon option type from str to enum According to `man upsd.users`, the option is 'either set to "primary" or "secondary"'. --- nixos/modules/services/monitoring/ups.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/ups.nix b/nixos/modules/services/monitoring/ups.nix index 359cb9085fcf..b86e93a661ca 100644 --- a/nixos/modules/services/monitoring/ups.nix +++ b/nixos/modules/services/monitoring/ups.nix @@ -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.