Files
nixos/Droidnix/generated/system/applications/terminal_shell/starship.nix
T
2026-03-07 23:37:54 +01:00

31 lines
706 B
Nix

{
config,
pkgs,
lib,
user,
...
}:
{
home-manager.users.${user.username} = {
programs.starship = {
enable = true; # Globally enables Starship for all shells
settings = {
addNewline = false;
# Example: Catppuccin Mocha theme
format = "$all";
};
};
# Optional: Ensure Starship init is in shell configs (if not auto-added)
xdg.configFile."bashrc".text = lib.concatStringsSep "\n" [
"eval \"$(starship init bash)\""
];
xdg.configFile."zshrc".text = lib.concatStringsSep "\n" [
"eval \"$(starship init zsh)\""
];
xdg.configFile."config/fish/config.fish".text = ''
starship init fish | source
'';
};
}