Polkit: Difference between revisions
imported>Chewie Mention use of systemd user service to launch a polkit authentication agent |
imported>Robbins mNo edit summary |
||
Line 17: | Line 17: | ||
<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" ]; | |||
WantedBy = [ "graphical-session.target" ]; | |||
After = [ "graphical-session.target" ]; | |||
}; | |||
Service = { | |||
Type = "simple"; | Type = "simple"; | ||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; | |||
Restart = "on-failure"; | |||
RestartSec = 1; | |||
TimeoutStopSec = 10; | |||
}; | |||
}; | }; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> |