use bash as login shell, but exec fish for interactive

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-14 13:03:40 +01:00
parent 41b5142e74
commit 1858f17e8e

View file

@ -73,6 +73,9 @@ in
}".source =
cfg.icon;
};
extraOptions.programs.bash.bashrcExtra = ''
[[ $PS1 ]] && exec env fish -l
'';
};
users.users.${cfg.name} =
@ -85,7 +88,7 @@ in
home = "/home/${cfg.name}";
group = "users";
shell = pkgs.fish;
shell = pkgs.bash;
# Arbitrary user ID to use for the user. Since I only
# have a single user on my machines this won't ever collide.