1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

kwm: add option to enable accessibility permissions

This commit is contained in:
Daiderd Jordan 2017-05-16 00:13:14 +02:00
parent 9b1a061ea8
commit 5a220c5249
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -21,12 +21,20 @@ in
example = literalExample pkgs.kwm;
description = "This option specifies the kwm package to use";
};
services.kwm.enableAccessibilityAccess = mkOption {
type = types.bool;
default = false;
description = "Whether to enable accessibility permissions for the kwm daemon.";
};
};
config = mkIf cfg.enable {
services.kwm.package = mkDefault pkgs.kwm;
security.accessibilityPrograms = [ "${cfg.package}/kwm" ];
launchd.user.agents.kwm = {
serviceConfig.Program = "${cfg.package}/kwm";
serviceConfig.KeepAlive = true;