rose-pine-nix/modules/home-manager/tofi.nix

13 lines
381 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 = lib.ctp.fromINI (sources.tofi + "/themes/catppuccin-${cfg.flavor}");
};
}