fix sessionPath problem
This commit is contained in:
parent
06a5c10816
commit
505e65b7e6
5
home.nix
5
home.nix
@ -36,6 +36,7 @@
|
|||||||
openssh
|
openssh
|
||||||
rnix-lsp.rnix-lsp
|
rnix-lsp.rnix-lsp
|
||||||
qemu
|
qemu
|
||||||
|
gcc9
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
@ -62,8 +63,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
".local/bin"
|
"$HOME/.local/bin"
|
||||||
".cargo/bin"
|
"$HOME/.cargo/bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
|
11
programs.nix
11
programs.nix
@ -1,4 +1,4 @@
|
|||||||
{
|
{ lib, config, ... }: {
|
||||||
programs = {
|
programs = {
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -39,15 +39,12 @@
|
|||||||
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "sudo" "git" "golang" "thefuck" "kubectl" "pip" "npm" "yarn" "vscode" ];
|
plugins = [ "sudo" "git" "golang" "thefuck" "kubectl" "pip" "npm" "yarn" "vscode" "rust" ];
|
||||||
theme = "fishy";
|
theme = "fishy";
|
||||||
};
|
};
|
||||||
|
|
||||||
profileExtra = ''
|
initExtra = lib.optionalString (config.home.sessionPath != [ ]) ''
|
||||||
# added by Nix installer
|
export PATH="$PATH''${PATH:+:}${lib.concatStringsSep ":" config.home.sessionPath}"
|
||||||
if [ -e /home/coder/.nix-profile/etc/profile.d/nix.sh ]; then
|
|
||||||
. /home/coder/.nix-profile/etc/profile.d/nix.sh
|
|
||||||
fi
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user