From 4e7d8cd5369713633538c133ca1cc22492e5eeb3 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 12 Nov 2024 00:57:21 -0600 Subject: [PATCH] refactor(hm/price): use hyprpolkitagent instead of gnome polkit agent --- users/price/home.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/users/price/home.nix b/users/price/home.nix index 11f89b75..0b45cd10 100644 --- a/users/price/home.nix +++ b/users/price/home.nix @@ -363,17 +363,18 @@ in After = [ "compositor.target" ]; }; }; - polkit-gnome-authentication-agent-1 = { + polkit-hyprpolkitagent = { Unit = { - Description = "Gnome Polkit authentication agent"; - Documentation = "https://gitlab.freedesktop.org/polkit/polkit/"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; + Description = "Hyprland Polkit authentication agent"; + Documentation = "https://wiki.hyprland.org/Hypr-Ecosystem/hyprpolkitagent/"; + After = [ "graphical-session.target" ]; }; Service = { - ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; + ExecStart = "${pkgs.hyprpolkitagent}/libexec/hyprpolkitagent"; Restart = "always"; + RestartSec = 2; + TimeoutStopSec = 10; }; Install.WantedBy = [ "graphical-session.target" ];