mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 03:08:11 +09:00
polkit-gnome
This commit is contained in:
@@ -1,32 +1,3 @@
|
|||||||
{
|
_: {
|
||||||
config,
|
services.polkit-gnome.enable = true;
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
mkSessionService = target: {
|
|
||||||
Unit = {
|
|
||||||
Description = "GNOME PolicyKit authentication agent";
|
|
||||||
Documentation = [ "man:polkit(8)" ];
|
|
||||||
PartOf = [ target ];
|
|
||||||
After = [ target ];
|
|
||||||
};
|
|
||||||
|
|
||||||
Service = {
|
|
||||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
||||||
Restart = "on-failure";
|
|
||||||
};
|
|
||||||
|
|
||||||
Install.WantedBy = [ target ];
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
systemd.user.services =
|
|
||||||
lib.optionalAttrs config.my.applications.niri.enable {
|
|
||||||
polkit-gnome-niri = mkSessionService "niri.service";
|
|
||||||
}
|
|
||||||
// lib.optionalAttrs config.my.applications.labwc.enable {
|
|
||||||
polkit-gnome-labwc = mkSessionService "labwc-session.target";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user