summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-05-06 08:34:19 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-05-06 08:39:27 +0100
commit539b091f6e0dab89071c55f34e6583b7a0584fdf (patch)
tree9b7423168f75895f961674630dcb7cece88ec9fb /nixos/modules
parent37f59b3586c5a4d9f07c6aef7a9355a84691297a (diff)
downloadnixpkgs-539b091f6e0dab89071c55f34e6583b7a0584fdf.tar
nixpkgs-539b091f6e0dab89071c55f34e6583b7a0584fdf.tar.gz
nixpkgs-539b091f6e0dab89071c55f34e6583b7a0584fdf.tar.bz2
nixpkgs-539b091f6e0dab89071c55f34e6583b7a0584fdf.tar.lz
nixpkgs-539b091f6e0dab89071c55f34e6583b7a0584fdf.tar.xz
nixpkgs-539b091f6e0dab89071c55f34e6583b7a0584fdf.tar.zst
nixpkgs-539b091f6e0dab89071c55f34e6583b7a0584fdf.zip
environment: remove sbin from PATH
sbin is a symlink to bin. /run/current-system/sw/sbin and related
profiles only contains packages, which have this symlink. It is a subset
of bin.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/programs/environment.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/environment.nix b/nixos/modules/programs/environment.nix
index 5a63b806cd7..6c0d5d8b604 100644
--- a/nixos/modules/programs/environment.nix
+++ b/nixos/modules/programs/environment.nix
@@ -31,7 +31,7 @@ in
 
     # TODO: move most of these elsewhere
     environment.profileRelativeEnvVars =
-      { PATH = [ "/bin" "/sbin" ];
+      { PATH = [ "/bin" ];
         INFOPATH = [ "/info" "/share/info" ];
         PKG_CONFIG_PATH = [ "/lib/pkgconfig" ];
         TERMINFO_DIRS = [ "/share/terminfo" ];