fish, starship, chatterino(not configed yet), mounted shared, pw cleanup

This commit is contained in:
nx2
2024-03-10 23:05:53 +01:00
parent 7229ccbf66
commit 9d1f884eba
4 changed files with 155 additions and 4 deletions

View File

@@ -89,8 +89,16 @@
services.xserver.libinput.enable = true;
hardware.uinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.defaultUserShell = pkgs.fish;
users.defaultUserShell = pkgs.bash; # if interactive, itll switch to fish
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
'';
};
users.users.nx2 = {
isNormalUser = true;