Unverified Commit 543b0d54 authored by K900's avatar K900 Committed by GitHub
Browse files

nixos/moonraker: set default machine.provider to none if system control is disabled (#399976)

parents 72927d5c 7a6c5213
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -224,6 +224,8 @@ in
        platform = "linux";
        enable_estimator_updates = false;
      };
      # suppress PolicyKit warnings if system control is disabled
      machine.provider = lib.mkIf (!cfg.allowSystemControl) (lib.mkDefault "none");
    };

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