home: refactor common files

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2025-06-29 19:15:33 +05:30
parent 43660ff173
commit 87a6c1a862
8 changed files with 7 additions and 32 deletions

View File

@@ -0,0 +1,28 @@
{ lib, ... }:
{
programs.zsh = {
enable = true;
autocd = true;
history = rec {
expireDuplicatesFirst = true;
size = 30000;
save = size;
};
autosuggestion.enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
prezto = {
enable = true;
prompt.theme = "pure";
autosuggestions.color = "fg=yellow,bold";
utility.safeOps = false;
extraConfig = lib.mkBefore ''
export GREP_COLORS="ms=01;31"
'';
};
initContent = lib.mkAfter ''
unsetopt extendedGlob
[[ -f ~/.zsh_custom ]] && source ~/.zsh_custom
'';
};
}