hypr: add gnome polkit agent

This commit is contained in:
Nico 2025-05-03 16:15:59 +10:00
parent 2da41d540a
commit 67b28f356f
2 changed files with 29 additions and 1 deletions

View file

@ -27,4 +27,22 @@
];
programs.ssh.startAgent = true;
# enable polkit
security.polkit.enable = true;
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
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;
};
};
};
}