From 1b6f56f5b8042000a826ecba2ebe52a831e2df46 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Mon, 15 May 2017 19:22:44 +0200 Subject: environment: include /usr/sbin and /sbin in systemPath Don't extend initial PATH adding extra entries should be done through appending environment.systemPath or manually extending it with environment.extraInit or similar options. --- modules/programs/bash.nix | 2 +- modules/programs/fish.nix | 2 +- modules/programs/zsh/default.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/programs') diff --git a/modules/programs/bash.nix b/modules/programs/bash.nix index abd2875..da79742 100644 --- a/modules/programs/bash.nix +++ b/modules/programs/bash.nix @@ -63,7 +63,7 @@ in if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi __ETC_BASHRC_SOURCED=1 - export PATH=${config.environment.systemPath}''${PATH:+:$PATH} + export PATH=${config.environment.systemPath} ${config.system.build.setEnvironment} ${config.system.build.setAliases} diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index ba0f67d..62cfd8b 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -123,7 +123,7 @@ in set fish_function_path $fish_function_path ${pkgs.fish-foreign-env}/share/fish-foreign-env/functions - set PATH ${replaceStrings [":"] [" "] config.environment.systemPath} $PATH + set PATH ${replaceStrings [":"] [" "] config.environment.systemPath} ${config.system.build.setEnvironment} diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix index 8eec449..f330a5c 100644 --- a/modules/programs/zsh/default.nix +++ b/modules/programs/zsh/default.nix @@ -177,7 +177,7 @@ in setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK - export PATH=${config.environment.systemPath}''${PATH:+:$PATH} + export PATH=${config.environment.systemPath} ${config.system.build.setEnvironment} ${config.system.build.setAliases} -- cgit v1.2.3