Skip to content

Commit 543b0d5

Browse files
authored
nixos/moonraker: set default machine.provider to none if system control is disabled (NixOS#399976)
2 parents 72927d5 + 7a6c521 commit 543b0d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nixos/modules/services/misc/moonraker.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ in
224224
platform = "linux";
225225
enable_estimator_updates = false;
226226
};
227+
# suppress PolicyKit warnings if system control is disabled
228+
machine.provider = lib.mkIf (!cfg.allowSystemControl) (lib.mkDefault "none");
227229
};
228230

229231
security.polkit.extraConfig = lib.optionalString cfg.allowSystemControl ''

0 commit comments

Comments
 (0)