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:
parent
9b1a061ea8
commit
5a220c5249
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue