diff --git a/profiles/bash.nix b/profiles/bash.nix new file mode 100644 index 0000000..e31192b --- /dev/null +++ b/profiles/bash.nix @@ -0,0 +1,19 @@ +# Configuration common to all my servers + +{ config, ... }: + +{ + + # Program defaults for all hosts + programs.bash = { + interactiveShellInit = '' + export TERM="xterm-256color" + test -r ~/.dir_colors && eval $(dircolors ~/.dir_colors) + ''; + promptInit = '' + eval "$(starship init bash)" + ''; + vteIntegration = true; + }; + +} diff --git a/profiles/host_common.nix b/profiles/host_common.nix index 75b8d81..1f50988 100644 --- a/profiles/host_common.nix +++ b/profiles/host_common.nix @@ -5,9 +5,11 @@ { imports = [ + ../profiles/bash.nix ./chrony.nix ../profiles/neovim.nix ../profiles/logrotate.nix + ../profiles/starship.nix ./tmux.nix ./zsh.nix ]; diff --git a/profiles/starship.nix b/profiles/starship.nix new file mode 100644 index 0000000..797ed08 --- /dev/null +++ b/profiles/starship.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + starship # A minimal, blazing fast, and extremely customizable prompt for any shell + ]; +} diff --git a/profiles/zsh.nix b/profiles/zsh.nix index b32c045..db6854e 100644 --- a/profiles/zsh.nix +++ b/profiles/zsh.nix @@ -27,9 +27,10 @@ "fzf" "git" ]; - theme = "powerlevel9k"; }; - promptInit = "source ${pkgs.zsh-powerlevel9k}/share/zsh-powerlevel9k/powerlevel9k.zsh-theme"; + promptInit = '' + eval "$(starship init zsh)" + ''; vteIntegration = true; };