summaryrefslogtreecommitdiff
path: root/modules/services
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-05-14 00:03:49 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-05-14 00:12:20 +0200
commita4eb645d0da4ce4743d86e1cfad7f7deb94de52c (patch)
tree591a43336f25536816875db124f625926b460583 /modules/services
parente9cf7650763322f484141ab7a46fc3dbb0b26d1a (diff)
launchd: allow string entries for serviceOptions.path
Fixes evaluation of khd.
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/khd.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/services/khd.nix b/modules/services/khd.nix
index 140460b..f308736 100644
--- a/modules/services/khd.nix
+++ b/modules/services/khd.nix
@@ -21,6 +21,7 @@ in
package = mkOption {
type = types.path;
default = pkgs.khd;
+ defaultText = "pkgs.khd";
description = "This option specifies the khd package to use.";
};
@@ -30,7 +31,7 @@ in
config = mkIf cfg.enable {
launchd.user.agents.khd = {
- path = [ cfg.package pkgs.kwm "${config.environment.systemPath}:" ];
+ path = [ cfg.package pkgs.kwm config.environment.systemPath ];
serviceConfig.Program = "${cfg.package}/bin/khd";
serviceConfig.KeepAlive = true;
serviceConfig.ProcessType = "Interactive";