correceted zsh imports

This commit is contained in:
2026-01-13 21:56:41 +01:00
parent 76034fd3cf
commit 74fd4e758a
2 changed files with 22 additions and 2 deletions
+1
View File
@@ -114,6 +114,7 @@
zoxide
yazi
fzf
zip
];
# Firewall settings
+21 -2
View File
@@ -22,7 +22,27 @@ in
programs.fzf.enableZshIntegration = true;
programs.zoxide.enable = true;
programs.zoxide.enableZshIntegration = true;
programs.zsh.envExtra = ["LANG=en_US.UTF-8" "EDITOR='nano'"];
programs.zsh = {
enable = true;
initContent = ''
zipdirs() {
for f in ./*; do
if [ -d "$f" ]; then
find "$f" -type f -name "*.txt" -delete
if [ -n "$(find "$f" -mindepth 1 -type d -print -quit)" ]; then
echo "Skipping $f: contains sub-folders"
continue
fi
zip -0 -r -j "$f.zip" "$f"/* && rm -rf "$f"
fi
done
}
'';
envExtra = ''
export LANG=en_US.UTF-8
export EDITOR='nano'
'';
};
};
home-manager.users."${config.vars.username}" = {
@@ -41,7 +61,6 @@ in
programs.fzf.enableZshIntegration = true;
programs.zoxide.enable = true;
programs.zoxide.enableZshIntegration = true;
programs.zsh.envExtra = ["LANG=en_US.UTF-8" "EDITOR='nano'"];
programs.ssh = {
enable = true;
addKeysToAgent = "yes";