21 lines
588 B
Nix
21 lines
588 B
Nix
{ pkgs, ... }:
|
|
{
|
|
imports = [ (../. + "/harald@amd/default.nix") ];
|
|
|
|
home.stateVersion = "25.11";
|
|
|
|
programs.direnv = {
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
|
|
programs.bash.initExtra = ''
|
|
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=""
|
|
SHELL=/run/current-system/sw/bin/fish exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
else
|
|
[[ $SHELL == *fish ]] && SHELL=/run/current-system/sw/bin/bash
|
|
fi
|
|
'';
|
|
}
|