nix/modules/programs/zsh/default.nix

38 lines
994 B
Nix
Raw Normal View History

2024-11-08 18:23:40 +01:00
{
pkgs,
domain,
username,
2024-11-09 16:24:20 +01:00
nixpath,
2024-11-08 18:23:40 +01:00
...
}: {
2024-10-04 22:32:42 +02:00
programs.zsh = {
2024-08-31 16:04:57 +02:00
enable = true;
syntaxHighlighting.enable = true;
enableCompletion = true;
2024-10-14 15:31:22 +02:00
autosuggestion.enable = true;
2024-08-31 16:04:57 +02:00
dotDir = ".config/zsh";
2024-10-18 18:09:30 +02:00
history.size = 1000000;
history.path = ".config/zsh/history";
2024-08-31 16:04:57 +02:00
shellAliases = {
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
2024-11-23 15:30:03 +01:00
v = "${pkgs.helix}/bin/hx";
cat = "${pkgs.bat}/bin/bat";
2024-10-11 00:39:34 +02:00
lg = "${pkgs.lazygit}/bin/lazygit";
2024-11-06 17:03:02 +01:00
rs = "z ~ && ssh root@45.145.42.193";
2024-11-08 18:23:40 +01:00
hs = "z ~ && ssh ${username}@${domain}";
2024-11-23 15:30:03 +01:00
ip = "sh ${nixpath}/modules/programs/zsh/scripts/ip.sh";
rb = "sh ${nixpath}/modules/programs/zsh/scripts/rebuild.sh";
2024-10-15 20:13:25 +02:00
fr = "doas systemctl reboot --firmware";
2024-11-23 15:30:03 +01:00
up = "nix flake update --flake ${nixpath}";
2024-10-15 20:13:25 +02:00
del = "doas nix-collect-garbage -d";
2024-08-31 16:04:57 +02:00
};
2024-10-05 00:31:24 +02:00
oh-my-zsh = {
enable = true;
2024-10-14 15:31:22 +02:00
plugins = ["git" "history-substring-search"];
2024-10-05 00:31:24 +02:00
theme = "simple";
};
2024-08-31 16:04:57 +02:00
};
}