summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-05-16 00:32:11 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-05-16 00:32:11 +0200
commit7f7d4bfebdeab9d7ab34353232b01b5bdf9c0b9c (patch)
tree2a6ae5fddd7abe6a649fce21ddfc3e26f4806400 /modules
parent5a220c524994e8901412903fc1329c1a03c986c9 (diff)
khd: add option to enable accessibility permissions
Diffstat (limited to 'modules')
-rw-r--r--modules/services/khd.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/services/khd.nix b/modules/services/khd.nix
index 23c40f0..fc57507 100644
--- a/modules/services/khd.nix
+++ b/modules/services/khd.nix
@@ -21,14 +21,23 @@ in
example = literalExample "pkgs.khd";
description = "This option specifies the khd package to use.";
};
+
+ services.khd.enableAccessibilityAccess = mkOption {
+ type = types.bool;
+ default = false;
+ description = "Whether to enable accessibility permissions for the khd daemon.";
+ };
};
config = mkIf cfg.enable {
services.khd.package = mkDefault pkgs.khd;
+ security.accessibilityPrograms = [ "${cfg.package}/bin/khd" ];
+
launchd.user.agents.khd = {
path = [ cfg.package pkgs.kwm config.environment.systemPath ];
+
serviceConfig.Program = "${cfg.package}/bin/khd";
serviceConfig.KeepAlive = true;
serviceConfig.ProcessType = "Interactive";