1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 08:17:01 +00:00

order the environment

This commit is contained in:
Wael M. Nasreddine 2019-02-21 15:57:51 -08:00
parent af347fe1ec
commit 5e6570c07c
No known key found for this signature in database
GPG key ID: FD437548E0BF0F5F
2 changed files with 6 additions and 7 deletions

View file

@ -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" ];

View file

@ -168,6 +168,6 @@ in
};
}) (filterAttrs (_: u: u.packages != []) cfg.users);
environment.profiles = [ "/etc/profiles/per-user/$USER" ];
environment.profiles = mkOrder 900 [ "/etc/profiles/per-user/$USER" ];
};
}