starship: refactor for more readable code
This commit is contained in:
parent
1f65d2f8f1
commit
fe870e0785
|
@ -3,6 +3,12 @@
|
|||
programs.starship =
|
||||
let
|
||||
flavour = "mocha";
|
||||
catppuccin-starship-repo = pkgs.fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "starship";
|
||||
rev = "5629d2356f62a9f2f8efad3ff37476c19969bd4f"; # Replace with the latest commit hash
|
||||
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
|
||||
};
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
@ -30,12 +36,6 @@
|
|||
};
|
||||
palette = "catppuccin_${flavour}";
|
||||
} // builtins.fromTOML (builtins.readFile
|
||||
(pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "starship";
|
||||
rev = "5629d2356f62a9f2f8efad3ff37476c19969bd4f"; # Replace with the latest commit hash
|
||||
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
|
||||
} + /palettes/${flavour}.toml));
|
||||
(catppuccin-starship-repo + /palettes/${flavour}.toml));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue