diff --git a/home.nix b/home.nix index 36d8bd2..f4c3078 100644 --- a/home.nix +++ b/home.nix @@ -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"