diff --git a/common/home.nix b/common/home.nix index 53d3c40..13d3623 100644 --- a/common/home.nix +++ b/common/home.nix @@ -469,4 +469,21 @@ defaultTimeout = 4000; font = "Noto Sans"; }; + + systemd.user.services.polkit-gnome-authentication-agent-1 = { + Unit = { + Description = "polkit-gnome-authentication-agent-1"; + Wants = [ "graphical-session.target" ]; + After = [ "graphical-session.target" ]; + }; + Service = { + Type = "simple"; + ExecStart = + "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; + Restart = "on-failure"; + RestartSec = 1; + TimeoutStopSec = 10; + }; + Install = { WantedBy = [ "graphical-session.target" ]; }; + }; }