rose-pine-nix/modules/home-manager/gh-dash.nix
Jens Gatzweiler 78a000d06c
feat(home-manager): add support for gh-dash (#143)
Co-authored-by: seth <getchoo@tuta.io>
2024-04-29 14:19:40 -04:00

17 lines
452 B
Nix

{ config
, lib
, sources
, ...
}:
let
cfg = config.programs.gh-dash.catppuccin;
enable = cfg.enable && config.programs.gh-dash.enable;
theme = "${sources.gh-dash}/themes/${cfg.flavour}/catppuccin-${cfg.flavour}-${cfg.accent}.yml";
in
{
options.programs.gh-dash.catppuccin = lib.ctp.mkCatppuccinOpt "gh-dash" // {
accent = lib.ctp.mkAccentOpt "gh-dash";
};
config.programs.gh-dash.settings = lib.mkIf enable (lib.ctp.fromYaml theme);
}