This commit is contained in:
2026-07-31 14:39:33 +09:00
parent ad6dff2f6a
commit 82d00fb574
9 changed files with 262 additions and 176 deletions
+32
View File
@@ -0,0 +1,32 @@
{
config,
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";
};
}
+3
View File
@@ -0,0 +1,3 @@
{
security.polkit.enable = true;
}