mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 00:21:04 +01:00
29 lines
827 B
Nix
29 lines
827 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"; };
|
|
};
|
|
};
|
|
}
|