From a4eb645d0da4ce4743d86e1cfad7f7deb94de52c Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 14 May 2017 00:03:49 +0200 Subject: launchd: allow string entries for serviceOptions.path Fixes evaluation of khd. --- modules/environment/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/environment/default.nix') diff --git a/modules/environment/default.nix b/modules/environment/default.nix index 80dc394..f982b25 100644 --- a/modules/environment/default.nix +++ b/modules/environment/default.nix @@ -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" -- cgit v1.2.3