Sync config for all systems

This commit is contained in:
Martin
2025-07-10 20:03:17 +02:00
parent 2517fd0269
commit 4d7caf0abe
10 changed files with 176 additions and 35 deletions

View File

@ -51,10 +51,11 @@
HISTIGNORE='&:[ ]*:exit:ls:bg:fg:history:clear'
unsetopt beep
# Rustup initialization
export RUSTUP_HOME="$HOME/.rustup"
export CARGO_HOME="$HOME/.cargo"
[ -f "$CARGO_HOME/env" ] && . "$CARGO_HOME/env"
if [[ "$(uname -s)" == "Darwin" ]]; then
export RUSTUP_HOME="$HOME/.rustup"
export CARGO_HOME="$HOME/.cargo"
[ -f "$CARGO_HOME/env" ] && . "$CARGO_HOME/env"
fi;
'';
};
@ -79,6 +80,7 @@
programs.bat.enable = true;
programs.ripgrep.enable = true;
programs.btop.enable = true;
programs.ranger.enable = true;
home.packages = with pkgs; [
fd
@ -87,7 +89,7 @@
ripgrep-all
viddy
duf
(python313.withPackages(ps: [ ps.llm ps.llm-anthropic ps.llm-gemini ]))
(python3.withPackages(ps: [ ps.llm ps.llm-gemini ]))
#nerdfonts
];
@ -95,4 +97,16 @@
BAT_THEME = "Coldark-Cold";
}
];
home.shellAliases = lib.mkMerge [
{
lst = "lsd --tree";
}
# This is the correct way to use lib.mkIf within lib.mkMerge
# (lib.mkIf pkgs.stdenv.targetPlatform.isWindows {
(lib.mkIf (lib.strings.hasSuffix "windows" pkgs.system) {
open = "explorer.exe .";
})
];
}