Files
nix-config/home/Winter/common/features/shell.nix
T
2026-11-18 09:43:01 -08:00

83 lines
1.9 KiB
Nix

# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{
inputs,
lib,
config,
pkgs,
...
}: {
imports = [
./wezterm/wezterm.nix
];
home.packages = (
(with pkgs; [
# --- Core Wayland plumbing (Stable 26.05) ---
wl-clipboard
])
++ (with pkgs.unstablePkgs; [
# --- Fast-moving CLI utils (Unstable) ---
clipse
timg
])
);
# --- Shell environment ---
programs.direnv.enable = true;
home.shellAliases = {
ll = "ls -l";
la = "ls -a";
lal = "ls -al";
};
programs.fish = {
enable = true;
shellAliases = {
ls = "eza --icons --group-directories-last --git";
lA = "ls --all --all"; #eza show . and ..
lAl = "lA -l";
tree = "ls --tree";
cat = "bat --no-paging --style=plain";
kys = "shutdown 0";
please = "sudo";
};
};
home.shell.enableFishIntegration = true;
programs.bash = {
enable = true;
#shellAliases = {};
initExtra = ''
# "check if parent process is not fish" && "make nested shells work properly"
if grep -qv fish /proc/$PPID/comm && [[ $SHLVL == [12] ]]; then
# set $SHELL for better integration with programs like nix shell, tmux, etc.
SHELL=${pkgs.fish}/bin/fish exec fish
fi
'';
};
programs.kitty = {
enable = true;
settings = {
"font_size" = 15;
"background_opacity" = 0.6;
"background_blur" = 1;
"include" = "colors.conf";
};
};
programs.starship = {
enable = true;
};
# --- CLI utils ---
programs.git = {
enable = true;
settings = {
init.defaultBranch = "main";
user.name = "winter";
user.email = "149337190+WinterEkisha@users.noreply.github.com";
};
};
programs.eza.enable = true;
programs.bat.enable = true;
programs.btop.enable = true;
programs.lazygit.enable = true;
programs.tmux.enable = true;
}