Loading nixos/modules/system/boot/systemd.nix +10 −0 Original line number Diff line number Diff line Loading @@ -852,6 +852,16 @@ in }; }; # Remove with systemd 259.4 security.polkit.extraConfig = mkIf config.security.polkit.enable '' polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.machine1.register-machine" && subject.user != "root") { return polkit.Result.AUTH_ADMIN_KEEP; } }); ''; # run0 is supposed to authenticate the user via polkit and then run a command. Without this next # part, run0 would fail to run the command even if authentication is successful and the user has # permission to run the command. This next part is only enabled if polkit is enabled because the Loading Loading
nixos/modules/system/boot/systemd.nix +10 −0 Original line number Diff line number Diff line Loading @@ -852,6 +852,16 @@ in }; }; # Remove with systemd 259.4 security.polkit.extraConfig = mkIf config.security.polkit.enable '' polkit.addRule(function(action, subject) { if (action.id == "org.freedesktop.machine1.register-machine" && subject.user != "root") { return polkit.Result.AUTH_ADMIN_KEEP; } }); ''; # run0 is supposed to authenticate the user via polkit and then run a command. Without this next # part, run0 would fail to run the command even if authentication is successful and the user has # permission to run the command. This next part is only enabled if polkit is enabled because the Loading