fix(home-manager/mpv): avoid IFD (#303)
* chore(home-manager/mpv): update mpv port * fix(home-manager/mpv): avoid ifd
This commit is contained in:
parent
afe2c4c865
commit
f1ccaad444
2 changed files with 4 additions and 11 deletions
|
@ -272,9 +272,9 @@
|
||||||
"repo": "mpv"
|
"repo": "mpv"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "da9199f55b42f9158371f31a7e34d88d1d7c7145",
|
"revision": "7b93fb0febd0490a8ccfe3077ab7741a9b4ef44a",
|
||||||
"url": "https://github.com/catppuccin/mpv/archive/da9199f55b42f9158371f31a7e34d88d1d7c7145.tar.gz",
|
"url": "https://github.com/catppuccin/mpv/archive/7b93fb0febd0490a8ccfe3077ab7741a9b4ef44a.tar.gz",
|
||||||
"hash": "1zwzplbn0a043gxl1q239mbb824qm5jl965qyb6rfg66x3ws5wi8"
|
"hash": "1wzahqxqrblalkcxi4ll05vi5rhmsm3z4mk7d96rfka2c38wc5wj"
|
||||||
},
|
},
|
||||||
"newsboat": {
|
"newsboat": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
|
@ -4,20 +4,13 @@ let
|
||||||
inherit (lib) ctp mkIf;
|
inherit (lib) ctp mkIf;
|
||||||
cfg = config.programs.mpv.catppuccin;
|
cfg = config.programs.mpv.catppuccin;
|
||||||
enable = cfg.enable && config.programs.mpv.enable;
|
enable = cfg.enable && config.programs.mpv.enable;
|
||||||
themeDir = sources.mpv + "/themes/${cfg.flavor}/${cfg.accent}";
|
|
||||||
uoscDir = sources.mpv + "/uosc/themes/${cfg.flavor}/${cfg.accent}";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.programs.mpv.catppuccin = ctp.mkCatppuccinOpt { name = "mpv"; } // {
|
options.programs.mpv.catppuccin = ctp.mkCatppuccinOpt { name = "mpv"; } // {
|
||||||
accent = ctp.mkAccentOpt "mpv";
|
accent = ctp.mkAccentOpt "mpv";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Note that the theme is defined across multiple files
|
|
||||||
config.programs.mpv = mkIf enable {
|
config.programs.mpv = mkIf enable {
|
||||||
config = ctp.fromINI (themeDir + "/mpv.conf");
|
config.include = sources.mpv + "/themes/${cfg.flavor}/${cfg.accent}.conf";
|
||||||
scriptOpts = {
|
|
||||||
stats = ctp.fromINI (themeDir + "/script-opts/stats.conf");
|
|
||||||
uosc = ctp.fromINI (uoscDir + "/script-opts/uosc.conf");
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue