fix maven and hm-up/np
This commit is contained in:
@@ -67,7 +67,7 @@ You can apply the configuration directly from a Git repository without cloning:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# If home-manager is not installed
|
# If home-manager is not installed
|
||||||
nix --no-write-lock-file run github:nix-community/home-manager/release-25.05 -- switch --flake 'git+https://g.t1.xyz/tb/nix-ebay-home.git#tbingmann'
|
nix --no-write-lock-file run github:nix-community/home-manager/release-25.05 -- switch --refresh --flake 'git+https://g.t1.xyz/tb/nix-ebay-home.git#tbingmann'
|
||||||
|
|
||||||
# If home-manager is installed
|
# If home-manager is installed
|
||||||
home-manager --no-write-lock-file switch --flake 'git+https://g.t1.xyz/tb/nix-ebay-home.git#tbingmann'
|
home-manager --no-write-lock-file switch --flake 'git+https://g.t1.xyz/tb/nix-ebay-home.git#tbingmann'
|
||||||
|
|||||||
11
home.nix
11
home.nix
@@ -30,10 +30,11 @@
|
|||||||
|
|
||||||
# Set environment variables for all shells
|
# Set environment variables for all shells
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
NIX_PATH = "${config.home.homeDirectory}/.nix-defexpr/channels:nixpkgs=${config.home.homeDirectory}/.nix-defexpr/channels/nixpkgs";
|
|
||||||
|
|
||||||
# Use bwrap for nix-portable
|
# Use bwrap for nix-portable
|
||||||
NP_RUNTIME = "bwrap";
|
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
|
# Create SSH environment file for non-interactive sessions
|
||||||
@@ -47,6 +48,8 @@
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nix
|
nix
|
||||||
eza
|
eza
|
||||||
|
|
||||||
|
ripgrep
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bash configuration
|
# Bash configuration
|
||||||
@@ -73,7 +76,9 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
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
|
# History configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user