refactor auth-agent
This commit is contained in:
parent
9cc08ef25d
commit
938f0779fd
1 changed files with 3 additions and 7 deletions
|
@ -1,12 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
agent = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
in
|
||||
{
|
||||
{ pkgs, ... }: {
|
||||
systemd.user = {
|
||||
services.auth-agent = {
|
||||
Unit = {
|
||||
Description = "Polkit AUthentication Agent";
|
||||
Description = "Polkit Authentication Agent";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
|
@ -14,7 +10,7 @@ in
|
|||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${agent}";
|
||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue