nixos/modules/shell.nix

79 lines
1.5 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
2024-05-28 21:34:07 -08:00
# programs.bash = {
# enable = true;
# shellAliases = {
# ls = "eza";
# tree = "eza -T";
# };
# };
programs.zsh = {
enable = true;
shellAliases = {
ls = "eza";
2024-04-17 21:26:43 -08:00
tree = "eza -T";
2024-05-29 14:39:59 -08:00
ping = "ping -c 4";
ip = "ip -c";
};
2024-05-28 21:34:07 -08:00
initExtraFirst = ''
2024-06-04 12:16:57 -08:00
[ -n "$EAT_SHELL_INTEGRATION_DIR" ] && \
source "$EAT_SHELL_INTEGRATION_DIR/zsh"
2024-05-28 21:34:07 -08:00
source ~/.p10k.zsh
'';
2024-05-28 21:34:07 -08:00
enableCompletion = true;
# autosuggestions.enable = true;
zplug = {
enable = true;
plugins = [
2024-05-29 14:39:59 -08:00
{ name = "zsh-users/zsh-autosuggestions"; }
2024-05-28 21:34:07 -08:00
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
2024-05-29 14:39:59 -08:00
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
{ name = "zsh-users/zsh-completions"; }
];
2024-05-28 21:34:07 -08:00
};
};
programs.zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
2024-06-04 17:23:37 -08:00
programs.fastfetch = {
enable = true;
settings.modules = [
"title"
"separator"
"os"
"host"
"kernel"
"uptime"
"packages"
"display"
"de"
"wm"
"cursor"
"terminal"
# "terminalfont"
"cpu"
"gpu"
"memory"
"swap"
"disk"
"localip"
"battery"
# "poweradapter"
"break"
"colors"
];
};
programs.hyfetch = {
enable = true;
settings = {
preset = "nonbinary";
mode = "rgb";
color_align = {
mode = "horizontal";
};
backend = "fastfetch";
};
};
}