Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(modules/home-manager): add glamour
Browse files Browse the repository at this point in the history
ryanccn committed Oct 16, 2023

Verified

This commit was signed with the committer’s verified signature.
ryanccn Ryan Cao
1 parent 4ade204 commit 8cb4d9b
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/home-manager/default.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ in
./lazygit.nix
./starship.nix
./helix.nix
./glamour.nix
./gtk.nix
./neovim.nix
./polybar.nix
31 changes: 31 additions & 0 deletions modules/home-manager/glamour.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ config
, pkgs
, lib
,
}:
let
cfg = config.programs.glamour.catppuccin;
enable = 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;

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

0 comments on commit 8cb4d9b

Please sign in to comment.