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:
parent
af347fe1ec
commit
5e6570c07c
2 changed files with 6 additions and 7 deletions
|
@ -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" ];
|
||||
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue