2024-04-28 11:35:35 +02:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
|
|
|
|
users.users.grape.shell = pkgs.zsh;
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
|
|
|
home-manager.users.grape = {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2024-06-11 20:09:58 +02:00
|
|
|
# TODO fix keymapping, so shortcuts like CTRL + A work...
|
2024-07-31 12:35:08 +02:00
|
|
|
# TODO create directory if non existent
|
|
|
|
history.path = "$HOME/zsh/history";
|
2024-04-28 11:35:35 +02:00
|
|
|
shellAliases = {
|
|
|
|
|
2024-05-28 02:36:04 +02:00
|
|
|
update = "doas nixos-rebuild switch --impure";
|
2024-04-28 11:35:35 +02:00
|
|
|
|
|
|
|
# docker
|
|
|
|
dc = "docker compose";
|
|
|
|
dco = "docker container";
|
|
|
|
dn = "docker network";
|
|
|
|
dv = "docker volume";
|
|
|
|
code = "codium";
|
|
|
|
|
|
|
|
#nix
|
|
|
|
garbage = "nix-collect-garbage -d";
|
2024-05-18 01:10:04 +02:00
|
|
|
dev = "nix develop --command zsh";
|
|
|
|
|
|
|
|
# ssh
|
2024-06-11 20:09:58 +02:00
|
|
|
pink = "ssh root@32.54.31.99";
|
2024-05-18 01:10:04 +02:00
|
|
|
yellow = "ssh root@32.54.31.5";
|
2024-06-11 20:09:58 +02:00
|
|
|
carbon = "ssh root@32.54.31.180";
|
|
|
|
lime = "ssh root@32.54.31.241";
|
2024-05-18 01:10:04 +02:00
|
|
|
|
|
|
|
# remote deployment
|
|
|
|
deploy-carbon = "nixos-rebuild switch --flake .#carbon --target-host root@32.54.31.180 --show-trace";
|
|
|
|
deploy-lime = "nixos-rebuild switch --flake .#lime --target-host root@32.54.31.241 --show-trace";
|
|
|
|
deploy-pink = "nixos-rebuild switch --flake .#pink --target-host root@32.54.31.99 --show-trace";
|
2024-04-28 11:35:35 +02:00
|
|
|
|
|
|
|
# other
|
2024-06-11 20:09:58 +02:00
|
|
|
sget = "yt-dlp -x --audio-format flac --embed-metadata --add-metadata ";
|
2024-04-28 11:35:35 +02:00
|
|
|
|
|
|
|
# productivity
|
|
|
|
# time tracking
|
|
|
|
timewastedon = "timew summary :year";
|
|
|
|
};
|
|
|
|
|
|
|
|
initExtra = ''
|
2024-06-11 20:09:58 +02:00
|
|
|
PROMPT="[%M] %~ "
|
2024-08-29 18:25:03 +02:00
|
|
|
|
2024-04-28 11:35:35 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2024-07-31 12:35:08 +02:00
|
|
|
antidote = {
|
2024-04-28 11:35:35 +02:00
|
|
|
enable = true;
|
2024-07-31 12:35:08 +02:00
|
|
|
|
2024-04-28 11:35:35 +02:00
|
|
|
plugins = [
|
2024-07-31 12:35:08 +02:00
|
|
|
"marlonrichert/zsh-autocomplete"
|
|
|
|
"zsh-users/zsh-syntax-highlighting"
|
2024-04-28 11:35:35 +02:00
|
|
|
];
|
2024-07-31 12:35:08 +02:00
|
|
|
# Zplug
|
|
|
|
# plugins = [
|
|
|
|
# { name = "marlonrichert/zsh-autocomplete"; }
|
|
|
|
# { name = "zsh-users/zsh-syntax-highlighting"; }
|
|
|
|
# ];
|
|
|
|
#
|
2024-04-28 11:35:35 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|