summaryrefslogtreecommitdiff
path: root/modules/environment
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/environment
parente9cf7650763322f484141ab7a46fc3dbb0b26d1a (diff)
launchd: allow string entries for serviceOptions.path
Fixes evaluation of khd.
Diffstat (limited to 'modules/environment')
-rw-r--r--modules/environment/default.nix5
1 files changed, 3 insertions, 2 deletions
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"