launchd: allow string entries for serviceOptions.path

Fixes evaluation of khd.
This commit is contained in:
Daiderd Jordan 2017-05-14 00:03:49 +02:00
parent e9cf765076
commit a4eb645d0d
No known key found for this signature in database
GPG key ID: D02435D05B810C96
3 changed files with 11 additions and 8 deletions

View file

@ -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";