Polkit: Difference between revisions
imported>Kquote03 No edit summary |
imported>Kavika13 Fix syntax error in polkit permissions for reboot/poweroff |
||
Line 11: | Line 11: | ||
With the following rule, we can grant the permissions <code>reboot</code> and <code>poweroff</code> a machine to users in the <code> | With the following rule, we can grant the permissions <code>reboot</code> and <code>poweroff</code> a machine to users in the <code> | ||
users</code> group. | users</code> group. | ||
This is useful on a multi-user machine | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
Line 21: | Line 23: | ||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" || | action.id == "org.freedesktop.login1.reboot-multiple-sessions" || | ||
action.id == "org.freedesktop.login1.power-off" || | action.id == "org.freedesktop.login1.power-off" || | ||
action.id == "org.freedesktop.login1.power-off-multiple-sessions" | action.id == "org.freedesktop.login1.power-off-multiple-sessions" | ||
) | ) | ||
) | ) |