AquaticOS/modules/programs/shell/shell.nix

48 lines
No EOL
1.2 KiB
Nix

{ ... }:
{
flake.modules.nixos.shell =
{ pkgs, ... }:
{
environment.systemPackages = with pkgs;
[
nh
rsync
zsh-powerlevel10k
pay-respects
zsh-autosuggestions
];
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
promptInit = "
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
source \"$XDG_CONFIG_HOME\"/zsh/.p10k.zsh
";
shellAliases = {
fuck = "pay-respects";
fr = "nh os switch \"path:/home/aqua/AquaticOS\" --ask";
frfix = "nh os boot \"path:/home/aqua/AquaticOS\" --ask";
fu = "nh os switch \"path:/home/aqua/AquaticOS\" --ask --update";
fclean = "nh clean all --keep 4 --keep-since 24h --ask";
ls = "eza --icons=auto";
copy = "rsync -azvh --info=progress2";
};
histSize = 10000;
histFile= "\"$XDG_STATE_HOME\"/zsh/history";
};
programs.bash = {
enable = true;
completion.enable = true;
};
};
}