nixos: system revamp

This commit is contained in:
lsoriano-mcm
2025-06-28 21:15:22 -05:00
parent 37e982c983
commit bdab858be2
12 changed files with 75 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
{pkgs, ...}: {
programs.bash = {
interactiveShellInit = ''
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
'';
};
programs = {
zsh.enable = true;
fish.enable = true;
};
}