1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 08:17:01 +00:00

khd: don't depend on kwm directly

Iff the kwm service is enabled the commands will still be in the default PATH.
This commit is contained in:
Daiderd Jordan 2018-03-27 21:42:50 +02:00
parent bd37b66faf
commit 4899b6658f
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 3 additions and 1 deletions

View file

@ -46,7 +46,7 @@ in
environment.etc."khdrc".text = cfg.khdConfig;
launchd.user.agents.khd = {
path = [ cfg.package pkgs.kwm config.environment.systemPath ];
path = [ cfg.package config.environment.systemPath ];
serviceConfig.ProgramArguments = [ "${cfg.package}/bin/khd" ]
++ optionals (cfg.khdConfig != "") [ "-c" "/etc/khdrc" ];

View file

@ -33,6 +33,8 @@ in
security.accessibilityPrograms = [ "${cfg.package}/kwm" ];
environment.systemPackages = [ cfg.package ];
environment.etc."kwmrc".text = cfg.kwmConfig;
launchd.user.agents.kwm = {