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`.
This commit is contained in:
Bernardo Meurer
2024-01-18 13:52:50 -05:00
parent 3df632c2fb
commit a09b1c12fb
+1 -1
View File
@@ -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)
''