From 23f23dbd2b537079266d38c11189b5c308d8f307 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Mon, 14 Oct 2024 15:04:55 +0200 Subject: [PATCH] feat: add polkit auth agent --- common/home.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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" ]; }; + }; }