From c8a04807eb9c17d709432fb97cfba0d75c7138d2 Mon Sep 17 00:00:00 2001 From: Chris Hodapp Date: Fri, 12 May 2017 00:32:03 -0700 Subject: [PATCH] Don't put profiles in reverse-order in PATH Your user-specific profile should take precedence over the system one. If I've gone out of my way to install something into my personal profile, my version should be used instead of the system's. --- modules/environment/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/environment/default.nix b/modules/environment/default.nix index 2e3d921..1e48065 100644 --- a/modules/environment/default.nix +++ b/modules/environment/default.nix @@ -33,7 +33,7 @@ in { environment.systemPath = mkOption { type = types.loeOf types.path; - default = (reverseList cfg.profiles) ++ [ "/usr/local" "/usr" "" ]; + default = cfg.profiles ++ [ "/usr/local" "/usr" "" ]; description = "The set of paths that are added to PATH."; apply = x: if isList x then makeBinPath x else x; };