feat: add polkit auth agent

This commit is contained in:
Ahurac 2024-10-14 15:04:55 +02:00
parent e32ad10fea
commit 23f23dbd2b

View file

@ -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" ]; };
};
}