diff --git a/home-manager/modules/shell.nix b/home-manager/modules/shell.nix index 3d67ec4..b6360d2 100644 --- a/home-manager/modules/shell.nix +++ b/home-manager/modules/shell.nix @@ -1,4 +1,4 @@ -{ inputs, config, ... }: { +{ inputs, config, pkgs, ... }: { # But we all know I love zsh programs.zsh = { enable = true; @@ -64,9 +64,25 @@ }; # Starhip settings - programs.starship = { + programs.starship = let flavour = "frappe"; + in { enable = true; enableZshIntegration = true; + settings = { + palette = "catppuccin_${flavour}"; + add_newline = false; + } // builtins.fromTOML (builtins.readFile (pkgs.fetchFromGitHub { + owner = "starship"; + repo = "starship"; + rev = "698572aa575508a4bdd0d3092c97f5a056dc50eb"; + hash = "sha256-jrtlK4vN8u2UhKeo5+9IyCVYJxkySh+JKhSCUsnQWAg="; + } + /docs/public/presets/toml/pure-preset.toml)) // builtins.fromTOML + (builtins.readFile (pkgs.fetchFromGitHub { + owner = "catppuccin"; + repo = "starship"; + rev = "5629d2356f62a9f2f8efad3ff37476c19969bd4f"; + hash = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0="; + } + /palettes/${flavour}.toml)); }; # Fzf settings