refactor some stuff

This commit is contained in:
2024-10-13 21:08:05 -04:00
parent 5b71bca1fe
commit 14a6dfe032
4 changed files with 21 additions and 9 deletions

View File

@@ -198,8 +198,20 @@
libmtp
];
#wayland with electron/chromium applications
# wayland with electron/chromium applications
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# https://nixos.wiki/wiki/Fish#Setting_fish_as_your_shell
programs.fish.enable = true;
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
'';
};
system.stateVersion = "24.11";
}