feat: add the autentication agent service

This commit is contained in:
EinEtwas 2024-10-18 01:17:57 +02:00
parent d1e398a8f6
commit 194139bec9

View file

@ -1,4 +1,19 @@
{ pkgs, ... }:
{
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" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
}