zsh: Write .bash_profile if not a NixOS host
This commit is contained in:
parent
d13bf9e990
commit
e935efbc9d
@ -8,4 +8,15 @@
|
||||
theme = "bira";
|
||||
};
|
||||
};
|
||||
|
||||
home.file.".bash_profile".text =
|
||||
# not having the attribute users means
|
||||
# we cannot change the default shell (e.g. this is not a NixOS host)
|
||||
if ! builtins.hasAttr "users" config then ''
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
|
||||
exec ${pkgs.zsh}/bin/zsh
|
||||
'' else null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user