configuration.nix/home/wm/addon/auth-agent.nix

23 lines
510 B
Nix
Raw Normal View History

2024-04-26 22:35:56 +05:30
{ pkgs, ... }:
let
agent = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
in
{
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 = "${agent}";
Restart = "on-failure";
};
};
};
}