diff --git a/system/common/global/security.nix b/system/common/global/security.nix index 86c7c85..12cce9b 100644 --- a/system/common/global/security.nix +++ b/system/common/global/security.nix @@ -6,6 +6,11 @@ { + + environment.systemPackages = with pkgs; [ + polkit_gnome +]; + programs = { gnupg.agent = { enable = true; @@ -30,7 +35,6 @@ ''; }; }; - systemd = { user.services.polkit-gnome-authentication-agent-1 = { @@ -39,12 +43,13 @@ wants = [ "graphical-session.target" ]; after = [ "graphical-session.target" ]; serviceConfig = { - Type = "simple"; - ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; - Restart = "on-failure"; - RestartSec = 1; - TimeoutStopSec = 10; - }; + Type = "simple"; + ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; + Restart = "on-failure"; + RestartSec = 1; + TimeoutStopSec = 10; + + }; }; };