1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/modules/services/lxqt-policykit-agent.nix
2025-05-07 10:03:21 -05:00

43 lines
856 B
Nix

{
config,
lib,
pkgs,
...
}:
let
inherit (lib)
mkEnableOption
mkPackageOption
mkIf
maintainers
;
cfg = config.services.lxqt-policykit-agent;
in
{
meta.maintainers = [ maintainers.bobvanderlinden ];
options = {
services.lxqt-policykit-agent = {
enable = mkEnableOption "LXQT Policykit Agent";
package = mkPackageOption pkgs [ "lxqt" "lxqt-policykit" ] { };
};
};
config = mkIf cfg.enable {
systemd.user.services.lxqt-policykit-agent = {
Unit = {
Description = "LXQT PolicyKit Agent";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${cfg.package}/bin/lxqt-policykit-agent";
};
};
};
}