diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2024-01-18 13:52:49 -0500 |
---|---|---|
committer | Bernardo Meurer <bernardo@meurer.org> | 2024-01-18 13:52:50 -0500 |
commit | a09b1c12fbf692c3a4e0e13ca3b904a58c08f6c5 (patch) | |
tree | 074c4cb8a9c8e7e4380218af01a2c0025b44a279 /nixos | |
parent | 3df632c2fba47c5d477f498b02add5c7aa2126f3 (diff) |
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`.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/moonraker.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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) '' |