Add starship theming

This commit is contained in:
Lillian Violet 2024-04-29 20:41:00 +02:00
parent 165c24b44d
commit 0ffffc4bb8
3 changed files with 51 additions and 6 deletions

View file

@ -10,6 +10,7 @@
./shell/helix.nix
./shell/zellij.nix
./shell/zsh.nix
./shell/starship.nix
];
home = {
username = "lillian";

View file

@ -0,0 +1,50 @@
{
lib,
pkgs,
...
}: {
programs.starship = let
flavour = "macchiato"; # One of `latte`, `frappe`, `macchiato`, or `mocha`
in {
enable = true;
settings =
{
add_newline = true;
format = lib.concatStrings [
"$sudo"
"$all"
];
character.success_symbol = "[](bold purple)";
package.disabled = true;
sudo = {
symbol = "witch ";
style = "bold blue";
format = "[$symbol]($style)";
disabled = false;
};
hostname = {
ssh_only = false;
format = "[$hostname](bold yellow)[$ssh_symbol](bold blue):";
trim_at = "";
disabled = false;
};
username = {
show_always = true;
format = "[$user]($style)@";
};
git_branch.style = "bold blue";
directory.style = "bold blue";
direnv.disabled = false;
palette = "catppuccin_${flavour}";
}
// builtins.fromTOML (builtins.readFile
(pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "starship";
rev = "5629d23"; # Replace with the latest commit hash
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
}
+ /palettes/${flavour}.toml));
};
}

View file

@ -6,12 +6,6 @@
pkgs,
...
}: {
# Enable starship
programs.starship = {
enable = true;
catppuccin.enable = true;
};
programs.zoxide = {
enable = true;
};