From 8abb5c3b6e0779353d2d6d44100f36ac43f00df9 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 17 Mar 2024 13:54:36 +0100 Subject: [PATCH] Nicer starship config. --- home-manager/modules/shell.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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