feat(home-manager): add local directories to PATH

This adds local `vendor/bin` and `node_modules/.bin` directories to my
`PATH` so I can more quickly and easily run binaries within a project
from within those directories without needing to include the path.
This commit is contained in:
Oliver Davies 2023-08-14 17:49:20 +01:00
parent 9bf205edd8
commit 7e8fc3c86f
2 changed files with 16 additions and 2 deletions

View file

@ -29,6 +29,7 @@ in
LANG = "en_GB.UTF-8";
LC_ALL = "en_GB.UTF-8";
LC_CTYPE = "en_GB.UTF-8";
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
PULUMI_SKIP_UPDATE_CHECK = "true";
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};

View file

@ -10,7 +10,20 @@ inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{ imports = [ shared-config ]; }
{ home.packages = shared-packages; }
{
imports = [ shared-config ];
home.packages = shared-packages;
home.sessionVariables = {
EDITOR = "nvim";
# LANG = "en_GB.UTF-8";
# LC_ALL = "en_GB.UTF-8";
# LC_CTYPE = "en_GB.UTF-8";
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
PULUMI_SKIP_UPDATE_CHECK = "true";
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};
}
];
}