60a1d9ba22
* fix(home-manager): dont declare xdg.configFile when btop isn't enabled * refactor: use alternatives to `with` and `rec` --------- Co-authored-by: Sam Nystrom <sam@samnystrom.dev>
16 lines
332 B
Nix
16 lines
332 B
Nix
{ config
|
|
, lib
|
|
, ...
|
|
}:
|
|
let
|
|
inherit (lib) ctp;
|
|
cfg = config.programs.kitty.catppuccin;
|
|
enable = cfg.enable && config.programs.kitty.enable;
|
|
in
|
|
{
|
|
options.programs.kitty.catppuccin =
|
|
ctp.mkCatppuccinOpt "kitty" config;
|
|
|
|
config.programs.kitty =
|
|
lib.mkIf enable { theme = "Catppuccin-${ctp.mkUpper cfg.flavour}"; };
|
|
}
|