rose-pine-nix/modules/home-manager/imv.nix
2024-05-21 22:53:46 +01:00

13 lines
355 B
Nix

{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.imv.catppuccin;
enable = cfg.enable && config.programs.imv.enable;
in
{
options.programs.imv.catppuccin = lib.ctp.mkCatppuccinOpt "imv";
config.programs.imv.settings = lib.mkIf enable (
lib.ctp.fromINI (sources.imv + /themes/${cfg.flavour}.config)
);
}