diff options
author | Tobias Happ <tobias.happ@gmx.de> | 2019-08-10 10:28:12 +0200 |
---|---|---|
committer | Tobias Happ <tobias.happ@gmx.de> | 2019-08-10 10:28:12 +0200 |
commit | 33c834f2fb2c25f2351cd0ae9b8cc361e033141b (patch) | |
tree | a3b33a9aaba618607d2a93ecd019c7ec45702170 /nixos/modules/programs | |
parent | 6eabfe010cd7e4eb36a115cc3a575297cba799e1 (diff) | |
download | nixlib-33c834f2fb2c25f2351cd0ae9b8cc361e033141b.tar nixlib-33c834f2fb2c25f2351cd0ae9b8cc361e033141b.tar.gz nixlib-33c834f2fb2c25f2351cd0ae9b8cc361e033141b.tar.bz2 nixlib-33c834f2fb2c25f2351cd0ae9b8cc361e033141b.tar.lz nixlib-33c834f2fb2c25f2351cd0ae9b8cc361e033141b.tar.xz nixlib-33c834f2fb2c25f2351cd0ae9b8cc361e033141b.tar.zst nixlib-33c834f2fb2c25f2351cd0ae9b8cc361e033141b.zip |
environment.profiles: fix order of profiles
This change is needed because the order of profiles correlate to the order in PATH, therefore "/etc/profiles/per-user/$USER" always appeared after the system packages directories.
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/environment.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/programs/environment.nix b/nixos/modules/programs/environment.nix index 3c6d356ef998..4d762314298d 100644 --- a/nixos/modules/programs/environment.nix +++ b/nixos/modules/programs/environment.nix @@ -23,9 +23,8 @@ in XCURSOR_PATH = [ "$HOME/.icons" ]; }; - environment.profiles = - [ "$HOME/.nix-profile" - "/nix/var/nix/profiles/default" + environment.profiles = mkAfter + [ "/nix/var/nix/profiles/default" "/run/current-system/sw" ]; |