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

@ -32,8 +32,7 @@ in {
};
environment.systemPath = mkOption {
type = types.loeOf types.path;
default = cfg.profiles ++ [ "/usr/local" "/usr" "" ];
type = types.loeOf types.str;
description = "The set of paths that are added to PATH.";
apply = x: if isList x then makeBinPath x else x;
};
@ -113,6 +112,8 @@ in {
config = {
environment.systemPath = cfg.profiles ++ [ "/usr/local" "/usr" "" ];
environment.profiles =
[ # Use user, default and system profiles.
"$HOME/.nix-profile"