launchd: allow string entries for serviceOptions.path
Fixes evaluation of khd.
This commit is contained in:
parent
e9cf765076
commit
a4eb645d0d
3 changed files with 11 additions and 8 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue