summaryrefslogtreecommitdiff
path: root/modules/environment
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2019-02-21 15:57:51 -0800
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2019-02-21 15:57:51 -0800
commit5e6570c07c9905c374be19c76b6034ac794ab5d5 (patch)
treec6bd08d565b02ea8c63f31aec42ff6c5612188ad /modules/environment
parentaf347fe1ec4593e273c9a4c8c2e1f386ec9ee9dd (diff)
order the environment
Diffstat (limited to 'modules/environment')
-rw-r--r--modules/environment/default.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix
index ae41065..d0fb128 100644
--- a/modules/environment/default.nix
+++ b/modules/environment/default.nix
@@ -152,12 +152,11 @@ in
environment.systemPath = [ (makeBinPath cfg.profiles) "/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin" ];
- environment.profiles =
- [ # Use user, default and system profiles.
- "$HOME/.nix-profile"
- "/run/current-system/sw"
- "/nix/var/nix/profiles/default"
- ];
+ # Use user, default and system profiles.
+ environment.profiles = mkMerge [
+ (mkOrder 800 [ "$HOME/.nix-profile" ])
+ [ "/run/current-system/sw" "/nix/var/nix/profiles/default" ]
+ ];
environment.pathsToLink = [ "/bin" "/share/locale" ];