1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/modules/services/lxqt-policykit-agent.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

45 lines
888 B
Nix

{
config,
lib,
pkgs,
...
}:
let
inherit (lib)
mkEnableOption
mkPackageOption
types
literalExpression
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";
};
};
};
}