1
0

fix paths

This commit is contained in:
Timo Bingmann
2025-07-09 14:32:26 -07:00
parent b32484695f
commit 1e30095098

View File

@@ -11,6 +11,12 @@
# Let Home Manager install and manage itself # Let Home Manager install and manage itself
programs.home-manager.enable = true; programs.home-manager.enable = true;
# Configure PATH for all shells, including non-interactive ones
home.sessionPath = [
"${config.home.homeDirectory}/.nix-profile/bin"
"/nix/var/nix/profiles/default/bin"
];
# Nix configuration # Nix configuration
nix = { nix = {
enable = true; enable = true;
@@ -21,8 +27,16 @@
}; };
}; };
# Set environment variables for all shells
home.sessionVariables = {
NIX_PATH = "${config.home.homeDirectory}/.nix-defexpr/channels:nixpkgs=$HOME/.nix-defexpr/channels/nixpkgs";
# Pre-set NIX_SOURCED to avoid duplicate sourcing
NIX_SOURCED = "1";
};
# Packages to install # Packages to install
home.packages = with pkgs; [ home.packages = with pkgs; [
eza
]; ];
# Bash configuration # Bash configuration
@@ -43,6 +57,10 @@
fi fi
''; '';
shellAliases = {
"hm-up" = "nix run github:nix-community/home-manager/release-25.05 -- switch --no-write-lock-file --refresh --flake 'git+https://g.t1.xyz/tb/nix-ebay-home.git#tbingmann'";
};
# History configuration # History configuration
historyControl = [ historyControl = [
"erasedups" "erasedups"