Polkit: Difference between revisions
m Fix minor typing and consistency errors |
Update syntax for example systemd unit |
||
| Line 62: | Line 62: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
systemd | systemd.user.services.polkit-gnome-authentication-agent-1 = { | ||
Unit = { | |||
Description = "polkit-gnome-authentication-agent-1"; | |||
Wants = [ "graphical-session.target" ]; | |||
After = [ "graphical-session.target" ]; | |||
}; | |||
Install = { | |||
WantedBy = [ "graphical-session.target" ]; | |||
}; | |||
Service = { | |||
Type = "simple"; | |||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; | |||
Restart = "on-failure"; | |||
RestartSec = 1; | |||
TimeoutStopSec = 10; | |||
}; | }; | ||
}; | }; | ||