rose-pine-nix/modules/home-manager/mpv.nix
Anomalocaridid f1ccaad444
fix(home-manager/mpv): avoid IFD (#303)
* chore(home-manager/mpv): update mpv port

* fix(home-manager/mpv): avoid ifd
2024-08-06 21:43:33 -04:00

16 lines
434 B
Nix

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