From a09b1c12fbf692c3a4e0e13ca3b904a58c08f6c5 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Thu, 18 Jan 2024 13:52:49 -0500 Subject: nixos/moonraker: don't warn about harmless update_manager settings The only setting we care to warn about is `enable_system_updates`, there's no reason to issue warnings when folks set, for example, `enable_auto_refresh`. --- nixos/modules/services/misc/moonraker.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/modules/services/misc/moonraker.nix b/nixos/modules/services/misc/moonraker.nix index 750dca9d03736..4e419aafa990b 100644 --- a/nixos/modules/services/misc/moonraker.nix +++ b/nixos/modules/services/misc/moonraker.nix @@ -103,7 +103,7 @@ in { config = mkIf cfg.enable { warnings = [] - ++ optional (cfg.settings ? update_manager) + ++ optional (cfg.settings.update_manager.enable_system_updates or false) ''Enabling update_manager is not supported on NixOS and will lead to non-removable warnings in some clients.'' ++ optional (cfg.configDir != null) '' -- cgit 1.4.1