78a000d06c
Co-authored-by: seth <getchoo@tuta.io>
17 lines
452 B
Nix
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);
|
|
}
|