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
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 = {
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
home.packages = with pkgs; [
eza
];
# Bash configuration
@@ -43,6 +57,10 @@
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
historyControl = [
"erasedups"