Skip to content

Commit

Permalink
fix(home-manager): use nvfetcher source for glamour
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Apr 7, 2024
1 parent bf62dec commit cc6e373
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions modules/home-manager/glamour.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
{ 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 =
lib.ctp.mkCatppuccinOpt "glamour";

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";
};
};
}

0 comments on commit cc6e373

Please sign in to comment.