34 lines
697 B
Nix
34 lines
697 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.features.cli.fish;
|
|
in {
|
|
options.features.cli.fish.enable = mkEnableOption "enable extended fish configuration";
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.fish = {
|
|
enable = true;
|
|
loginShellInit = ''
|
|
set -x NIX_PATH nixpkgs=channel:nixos-unstable
|
|
set -x NIX_LOG info
|
|
set -x TERMINAL kitty
|
|
source /run/agenix/${config.home.username}-secrets
|
|
|
|
if test (tty) = "/dev/tty1"
|
|
exec Hyprland &> /dev/null
|
|
end
|
|
'';
|
|
shellAbbrs = {
|
|
".." = "cd ..";
|
|
"..." = "cd ../..";
|
|
ls = "eza";
|
|
grep = "rg";
|
|
ps = "procs";
|
|
};
|
|
};
|
|
};
|
|
}
|