refactor modules

This commit is contained in:
2026-03-29 17:10:57 +02:00
parent 0b0dd1a1ba
commit a13add9b81
31 changed files with 33 additions and 0 deletions

74
modules/shell/zsh/zsh.nix Normal file
View File

@@ -0,0 +1,74 @@
{
flake.homeModules.zsh = {
config,
pkgs,
...
}: let
omz_custom = "${config.home.homeDirectory}/.config/omz_custom";
in {
home.file."${omz_custom}" = {
source = ./static/omz_custom;
recursive = true;
};
# direnv
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
# fancy ls command
programs.lsd = {
enable = true;
};
# Zsh
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [
"docker"
"docker-compose"
"fzf"
"git"
"pass"
"poetry"
"python"
"rust"
];
theme = "my_bureau";
custom = omz_custom;
};
};
home.packages = with pkgs; [
bat
fzf
git
htop
killall
mmtui
nh
nix-output-monitor
nix-search-cli
nix-tree
nixpkgs-fmt
pass
pay-respects
ranger
unzip
vim
w3m
wget
yt-dlp
zip
];
};
}