use bash as login shell, but exec fish for interactive
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
41b5142e74
commit
1858f17e8e
|
@ -73,6 +73,9 @@ in
|
||||||
}".source =
|
}".source =
|
||||||
cfg.icon;
|
cfg.icon;
|
||||||
};
|
};
|
||||||
|
extraOptions.programs.bash.bashrcExtra = ''
|
||||||
|
[[ $PS1 ]] && exec env fish -l
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${cfg.name} =
|
users.users.${cfg.name} =
|
||||||
|
@ -85,7 +88,7 @@ in
|
||||||
home = "/home/${cfg.name}";
|
home = "/home/${cfg.name}";
|
||||||
group = "users";
|
group = "users";
|
||||||
|
|
||||||
shell = pkgs.fish;
|
shell = pkgs.bash;
|
||||||
|
|
||||||
# Arbitrary user ID to use for the user. Since I only
|
# Arbitrary user ID to use for the user. Since I only
|
||||||
# have a single user on my machines this won't ever collide.
|
# have a single user on my machines this won't ever collide.
|
||||||
|
|
Loading…
Reference in a new issue