From cc6e373d27c53605a7b9ebaa797df0129e5a36f0 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 7 Apr 2024 05:31:36 -0400 Subject: [PATCH] fix(home-manager): use nvfetcher source for glamour --- modules/home-manager/glamour.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/modules/home-manager/glamour.nix b/modules/home-manager/glamour.nix index b2b286fc..11b0fbbe 100644 --- a/modules/home-manager/glamour.nix +++ b/modules/home-manager/glamour.nix @@ -1,20 +1,11 @@ { config -, pkgs , lib +, sources , ... }: let cfg = config.programs.glamour.catppuccin; inherit (cfg) enable; - - version = "1.0.0"; - - hashes = { - latte = "sha256-V0LsRStF1vL+Tz8G6VaKiwiY/ZIsSkMc+f1WJAITYXU="; - frappe = "sha256-YOatgYCJKuesVERHZVmF1xtzuLjyxCYstoWYqATq+NU="; - macchiato = "sha256-CeSJvhjzHVTtlqgQLKOrdLXtp2OQlMh24IaA1QQiQCk="; - mocha = "sha256-Tx2fQteL4wxhV+qHYZibakiYoEhS4HjyMO0yBcU/F6Q="; - }; in { options.programs.glamour.catppuccin = @@ -22,10 +13,7 @@ in config = { home.sessionVariables = lib.mkIf enable { - GLAMOUR_STYLE = pkgs.fetchurl { - url = "https://github.com/catppuccin/glamour/releases/download/v${version}/${cfg.flavour}.json"; - hash = hashes.${cfg.flavour}; - }; + GLAMOUR_STYLE = "${sources.glamour}/themes/catppuccin-${cfg.flavour}.json"; }; }; }