removes fish as shell

This commit is contained in:
Dennis 2025-09-16 15:36:12 +02:00
parent 6d1bb749a7
commit 852258d66f
3 changed files with 3 additions and 20 deletions

View file

@ -18,16 +18,13 @@
fortune fortune
iotop iotop
iftop iftop
btop
just just
mmv-go mmv-go
lazygit
fish
zoxide zoxide
]; ];
imports = [ imports = [
../modules/fish/server.nix
../modules/lazygit
../modules/ssh ../modules/ssh
]; ];

View file

@ -43,15 +43,8 @@
}; };
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
# Launch fish shell
programs.bash = { programs.bash = {
interactiveShellInit = '' enable = true;
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
}; };
# Networking # Networking

View file

@ -41,15 +41,8 @@
}; };
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
# Launch fish shell
programs.bash = { programs.bash = {
interactiveShellInit = '' enable = true;
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
}; };
security.sudo.enable = true; security.sudo.enable = true;