[Rust] Moves cargo env to rust file [Nix] small cleanups [Terminal] Removes special Alacritty TERM override

This commit is contained in:
2025-03-02 14:54:26 -08:00
parent 23e924900b
commit bc124405ae
4 changed files with 6 additions and 18 deletions

View File

@@ -4,4 +4,8 @@
rust-analyzer rust-analyzer
rustfmt rustfmt
]; ];
programs.zsh.envExtra = [
". \"$HOME/.cargo/env\""
];
} }

View File

@@ -30,7 +30,6 @@
programs.zsh = { programs.zsh = {
enable = true; enable = true;
envExtra = '' envExtra = ''
. "$HOME/.cargo/env"
PATH=$PATH:$HOME/.local/bin PATH=$PATH:$HOME/.local/bin
GITHUB_USERNAME=periodic GITHUB_USERNAME=periodic
''; '';

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { ... }:
{ {
services.ssh-agent.enable = true; services.ssh-agent.enable = true;

View File

@@ -97,19 +97,4 @@
}; };
}; };
}; };
programs.ssh = {
enable = true;
matchBlocks = {
"*" = {
setEnv = {
# Alacritty sets it's terminfo to 'alacritty' so that environments can have
# complete functionality support. However, this doesn't work well when making
# remove connections. So we set it to 'xterm-256color' which is a more common
# terminfo.
"TERM" = "xterm-256color";
};
};
};
};
} }