nix-config/modules/shell/fish.nix

27 lines
657 B
Nix
Raw Normal View History

2023-10-14 18:53:32 +02:00
{
config,
lib,
pkgs,
vars,
...
}: {
home-manager.users.${vars.user} = {
programs.fish = {
enable = true;
interactiveShellInit = ''
nix-your-shell fish | source
set fish_greeting
'';
shellAliases = {
lzg = "lazygit";
lzd = "lazydocker";
2023-11-05 19:43:51 +01:00
batt = ''upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -e "percentage" -e "state"'';
hxoff = "~/Documents/heliox-cli/target/debug/heliox-cli --mode off";
hxson = "~/Documents/heliox-cli/target/debug/heliox-cli --mode son";
slp = "systemctl suspend";
sdn = "shutdown 0";
2023-10-14 18:53:32 +02:00
};
};
};
}