37 lines
814 B
Nix
37 lines
814 B
Nix
{
|
|
pkgs,
|
|
username,
|
|
stateVersion,
|
|
...
|
|
}:
|
|
{
|
|
home.stateVersion = "24.11";
|
|
programs.fish =
|
|
let
|
|
eza = "${pkgs.eza}/bin/eza --color=always --group-directories-first";
|
|
coreutils = "${pkgs.coreutils}/bin";
|
|
in
|
|
{
|
|
enable = true;
|
|
|
|
interactiveShellInit = ''
|
|
#disable greeting
|
|
set fish_greeting
|
|
|
|
#fixes gnupg password entry
|
|
export GPG_TTY=(${coreutils}/tty)
|
|
|
|
#pfetch on shell start (disable pkgs because of execution time)
|
|
PF_INFO="ascii title os host kernel uptime memory editor wm" ${pkgs.pfetch-rs}/bin/pfetch
|
|
'';
|
|
|
|
shellAliases = {
|
|
# from DistroTube's dot files: Changing "ls" to "eza"
|
|
ls = "${eza} -al";
|
|
la = "${eza} -a";
|
|
ll = "${eza} -l";
|
|
lt = "${eza} -aT";
|
|
};
|
|
};
|
|
}
|