fix maven and hm-up/np
This commit is contained in:
11
home.nix
11
home.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user