dotfiles/nix/system/shell.nix

74 lines
1.9 KiB
Nix
Raw Permalink Normal View History

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;
# TODO fix keymapping, so shortcuts like CTRL + A work...
# TODO create directory if non existent
history.path = "$HOME/zsh/history";
2024-04-28 11:35:35 +02:00
shellAliases = {
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
pink = "ssh root@32.54.31.99";
2024-05-18 01:10:04 +02:00
yellow = "ssh root@32.54.31.5";
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
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 = ''
PROMPT="[%M] %~ "
2024-08-29 18:25:03 +02:00
2024-04-28 11:35:35 +02:00
'';
sessionVariables = {
EDITOR = "nvim";
};
antidote = {
2024-04-28 11:35:35 +02:00
enable = true;
2024-04-28 11:35:35 +02:00
plugins = [
"marlonrichert/zsh-autocomplete"
"zsh-users/zsh-syntax-highlighting"
2024-04-28 11:35:35 +02:00
];
# Zplug
# plugins = [
# { name = "marlonrichert/zsh-autocomplete"; }
# { name = "zsh-users/zsh-syntax-highlighting"; }
# ];
#
2024-04-28 11:35:35 +02:00
};
};
};
}