Common/programs/starship: add catpuccin color palette
This commit is contained in:
parent
437d3022eb
commit
9a8309def9
1 changed files with 16 additions and 4 deletions
|
|
@ -1,7 +1,16 @@
|
|||
{ config, ... }:
|
||||
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
catppuccinFlavour = "mocha";
|
||||
catppuccinStarship = pkgs.fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "starship";
|
||||
# Latest commit is 5629d2356f62a9f2f8efad3ff37476c19969bd4f
|
||||
rev = "main";
|
||||
hash = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
|
||||
} + /palettes/${catppuccinFlavour}.toml;
|
||||
in
|
||||
{
|
||||
programs.starship = {
|
||||
programs.starship = with builtins; {
|
||||
enable = true;
|
||||
settings = {
|
||||
nix_shell = {
|
||||
|
|
@ -17,6 +26,9 @@
|
|||
disabled = false;
|
||||
read_only = " ";
|
||||
};
|
||||
};
|
||||
palette = "catppuccin_${catppuccinFlavour}";
|
||||
} //
|
||||
# Add the catppuccin palette to the settings file
|
||||
(fromTOML (readFile catppuccinStarship));
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue