6919f27890
Clearer naming to distinguish NixOS system modules from Home Manager modules (nixos/ vs home/). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
12 lines
363 B
Nix
12 lines
363 B
Nix
{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
|
|
'';
|
|
fish.enable = true;
|
|
};
|
|
}
|