Sync config for all systems

This commit is contained in:
Martin
2025-07-10 20:05:30 +02:00
parent 2d93535296
commit 606e5bed8e
2 changed files with 104 additions and 65 deletions

View File

@ -50,6 +50,12 @@
HISTCONTROL='erasedups:ignoreboth'
HISTIGNORE='&:[ ]*:exit:ls:bg:fg:history:clear'
unsetopt beep
if [[ "$(uname -s)" == "Darwin" ]]; then
export RUSTUP_HOME="$HOME/.rustup"
export CARGO_HOME="$HOME/.cargo"
[ -f "$CARGO_HOME/env" ] && . "$CARGO_HOME/env"
fi;
'';
};
@ -75,7 +81,7 @@
programs.ripgrep.enable = true;
programs.btop.enable = true;
programs.ranger.enable = true;
home.packages = with pkgs; [
fd
du-dust
@ -83,7 +89,8 @@
ripgrep-all
viddy
duf
(python3.withPackages (ps: [ ps.llm ps.llm-gemini]))
(python3.withPackages(ps: [ ps.llm ps.llm-gemini ]))
#nerdfonts
];
home.sessionVariables = lib.mkMerge [ {
@ -91,9 +98,15 @@
}
];
home.shellAliases = lib.mkMerge [ {
open = "explorer.exe .";
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 .";
})
];
}