dotfiles/nixos/system/shell.nix
2024-04-28 11:35:35 +02:00

57 lines
1.1 KiB
Nix
Executable file

{ pkgs, ... }: {
# setting zsh as default shell
users.users.grape.shell = pkgs.zsh;
programs.zsh.enable = true;
home-manager.users.grape = {
programs.zsh = {
enable = true;
shellAliases = {
# essentials
la = "ls -a";
sudo = "doas";
update = "doas nixos-rebuild switch";
# docker
dc = "docker compose";
dco = "docker container";
dn = "docker network";
dv = "docker volume";
code = "codium";
#nix
garbage = "nix-collect-garbage -d";
# other
sget = "yt-dlp -x --audio-format flac --embed-metadata --add-metadata '$1'";
# productivity
# time tracking
timewastedon = "timew summary :year";
tt = "timew start";
ts = "timew stop";
};
initExtra = ''
PROMPT="[%M] %~ "
'';
sessionVariables = {
EDITOR = "nvim";
};
zplug = {
enable = true;
plugins = [
{ name = "marlonrichert/zsh-autocomplete"; }
{ name = "zsh-users/zsh-syntax-highlighting"; }
];
};
};
};
}