summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/config/system-path.nix1
-rw-r--r--nixos/modules/programs/environment.nix2
2 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix
index ed7b949ecc2..f3e86bfd201 100644
--- a/nixos/modules/config/system-path.nix
+++ b/nixos/modules/config/system-path.nix
@@ -108,6 +108,7 @@ in
         "/info"
         "/lib"
         "/man"
+        "/sbin"
         "/share/emacs"
         "/share/vim-plugins"
         "/share/org"
diff --git a/nixos/modules/programs/environment.nix b/nixos/modules/programs/environment.nix
index 1a84e05763f..e0379a2c02a 100644
--- a/nixos/modules/programs/environment.nix
+++ b/nixos/modules/programs/environment.nix
@@ -39,7 +39,7 @@ in
 
     # TODO: move most of these elsewhere
     environment.profileRelativeEnvVars =
-      { PATH = [ "/bin" "/lib/kde4/libexec" ];
+      { PATH = [ "/bin" "/sbin" "/lib/kde4/libexec" ];
         INFOPATH = [ "/info" "/share/info" ];
         PKG_CONFIG_PATH = [ "/lib/pkgconfig" ];
         TERMINFO_DIRS = [ "/share/terminfo" ];