From 1858f17e8e197de9b00e6c714110d0d94c3a3092 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 14 Mar 2024 13:03:40 +0100 Subject: [PATCH] use bash as login shell, but exec fish for interactive Signed-off-by: Harald Hoyer --- modules/nixos/user/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/nixos/user/default.nix b/modules/nixos/user/default.nix index f3ae118..6e30c93 100644 --- a/modules/nixos/user/default.nix +++ b/modules/nixos/user/default.nix @@ -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.