From 938f0779fd42323d429391d965a45a06996f242b Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 26 Apr 2024 22:43:37 +0530 Subject: [PATCH] refactor auth-agent --- home/wm/addon/auth-agent.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/home/wm/addon/auth-agent.nix b/home/wm/addon/auth-agent.nix index dc82467..a631042 100644 --- a/home/wm/addon/auth-agent.nix +++ b/home/wm/addon/auth-agent.nix @@ -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"; }; };