fix: polkit-gnome

This commit is contained in:
ooks-io 2023-08-18 20:13:39 +12:00
parent 788807aab5
commit c49937dbaa

View file

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