diff options
| author | Michael Hoang <Enzime@users.noreply.github.com> | 2024-05-24 10:37:35 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 10:37:35 +1000 |
| commit | 0bea8222f6e83247dd13b055d83e64bce02ee532 (patch) | |
| tree | eaf14d5cc1fb65b6012f03eeb409d7710d596aa1 /modules | |
| parent | eac4f25028c1975a939c8f8fba95c12f8a25e01c (diff) | |
| parent | 7f897008d4f3c7dda86e19106169eb947a0ac308 (diff) | |
Merge pull request #956 from amarshall/systempath-order
environment: Adjust systemPath order to allow injecting in the middle
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/environment/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/environment/default.nix b/modules/environment/default.nix index 753ee31..bb99622 100644 --- a/modules/environment/default.nix +++ b/modules/environment/default.nix @@ -151,7 +151,10 @@ in config = { - environment.systemPath = [ (makeBinPath cfg.profiles) "/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin" ]; + environment.systemPath = mkMerge [ + [ (makeBinPath cfg.profiles) ] + (mkOrder 1200 [ "/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin" ]) + ]; # Use user, default and system profiles. environment.profiles = mkMerge [ |
