configuration.nix/home/wm/addon/auth-agent.nix
2024-04-26 22:43:47 +05:30

18 lines
481 B
Nix

{ pkgs, ... }: {
systemd.user = {
services.auth-agent = {
Unit = {
Description = "Polkit Authentication Agent";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session-pre.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
};
};
};
}