nix-config/modules/shell/fish.nix
GHOSCHT 22f37a8ee7 Add desktop shell aliases
- heliox controls
- system controls (shutdown/suspend)
2023-11-19 17:27:02 +01:00

26 lines
657 B
Nix

{
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";
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";
};
};
};
}