add service for polkit-gnome

This commit is contained in:
lucy 2026-10-16 12:51:49 +02:00
commit 2cab445aad
2 changed files with 19 additions and 2 deletions

View file

@ -31,11 +31,25 @@
wantedBy = [ config.maid.systemdGraphicalTarget ];
reloadIfChanged = true;
serviceConfig = {
Type = "notify";
Type = "notify";
ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
BusName = "com.mitchellh.ghostty";
ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false";
};
};
systemd.services.polkit-gnome = {
wantedBy = [ config.maid.systemdGraphicalTarget ];
unitConfig = {
Description = "polkit-gnome authentication agent";
PartOf = [ config.maid.systemdGraphicalTarget ];
After = [ config.maid.systemdGraphicalTarget ];
};
serviceConfig = {
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
};
};
};
}