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
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue