1
0

fix maven and hm-up/np

This commit is contained in:
Timo Bingmann
2025-07-18 17:27:08 -07:00
parent ec596c5cf4
commit 7330ef822c
2 changed files with 9 additions and 4 deletions

View File

@@ -30,10 +30,11 @@
# Set environment variables for all shells
home.sessionVariables = {
NIX_PATH = "${config.home.homeDirectory}/.nix-defexpr/channels:nixpkgs=${config.home.homeDirectory}/.nix-defexpr/channels/nixpkgs";
# Use bwrap for nix-portable
NP_RUNTIME = "bwrap";
# This is missing for some reason and breaks alls kinds of Maven compilations.
MAVEN_OPTS="-Duser.home=${config.home.homeDirectory}";
};
# Create SSH environment file for non-interactive sessions
@@ -47,6 +48,8 @@
home.packages = with pkgs; [
nix
eza
ripgrep
];
# Bash configuration
@@ -73,7 +76,9 @@
'';
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'";
"hm-up" = "nix-portable nix run github:nix-community/home-manager/release-25.05 -- switch --refresh --flake 'git+https://g.t1.xyz/tb/nix-ebay-home.git#tbingmann'";
"np" = "nix-portable nix run nixpkgs#bashInteractive --offline";
};
# History configuration