rose-pine-nix/modules/home-manager/tofi.nix
2024-08-06 21:38:36 -04:00

13 lines
371 B
Nix

{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.tofi.catppuccin;
enable = cfg.enable && config.programs.tofi.enable;
in
{
options.programs.tofi.catppuccin = lib.ctp.mkCatppuccinOpt { name = "tofi"; };
config.programs.tofi = lib.mkIf enable {
settings.include = sources.tofi + "/themes/catppuccin-${cfg.flavor}";
};
}