75 lines
1.9 KiB
Nix
Executable file
75 lines
1.9 KiB
Nix
Executable file
{ 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";
|
|
shellAliases = {
|
|
|
|
update = "doas nixos-rebuild switch --impure";
|
|
|
|
# docker
|
|
dc = "docker compose";
|
|
dco = "docker container";
|
|
dn = "docker network";
|
|
dv = "docker volume";
|
|
code = "codium";
|
|
|
|
|
|
#nix
|
|
garbage = "nix-collect-garbage -d";
|
|
dev = "nix develop --command zsh";
|
|
|
|
# ssh
|
|
pink = "ssh root@32.54.31.99";
|
|
yellow = "ssh root@32.54.31.5";
|
|
carbon = "ssh root@32.54.31.180";
|
|
lime = "ssh root@32.54.31.241";
|
|
|
|
# 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";
|
|
|
|
# other
|
|
sget = "yt-dlp -x --audio-format flac --embed-metadata --add-metadata ";
|
|
|
|
# productivity
|
|
# time tracking
|
|
timewastedon = "timew summary :year";
|
|
};
|
|
|
|
initExtra = ''
|
|
PROMPT="[%M] %~ "
|
|
|
|
'';
|
|
|
|
sessionVariables = {
|
|
EDITOR = "nvim";
|
|
};
|
|
|
|
|
|
antidote = {
|
|
enable = true;
|
|
|
|
plugins = [
|
|
"marlonrichert/zsh-autocomplete"
|
|
"zsh-users/zsh-syntax-highlighting"
|
|
];
|
|
# Zplug
|
|
# plugins = [
|
|
# { name = "marlonrichert/zsh-autocomplete"; }
|
|
# { name = "zsh-users/zsh-syntax-highlighting"; }
|
|
# ];
|
|
#
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|