f1ccaad444
* chore(home-manager/mpv): update mpv port * fix(home-manager/mpv): avoid ifd
16 lines
434 B
Nix
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";
|
|
};
|
|
}
|