From f1ccaad444ef97c84c59215e3858ed7a95fa7bff Mon Sep 17 00:00:00 2001 From: Anomalocaridid <29845794+Anomalocaridid@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:43:33 -0400 Subject: [PATCH] fix(home-manager/mpv): avoid IFD (#303) * chore(home-manager/mpv): update mpv port * fix(home-manager/mpv): avoid ifd --- .sources/sources.json | 6 +++--- modules/home-manager/mpv.nix | 9 +-------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.sources/sources.json b/.sources/sources.json index ca96b10..5121a23 100644 --- a/.sources/sources.json +++ b/.sources/sources.json @@ -272,9 +272,9 @@ "repo": "mpv" }, "branch": "main", - "revision": "da9199f55b42f9158371f31a7e34d88d1d7c7145", - "url": "https://github.com/catppuccin/mpv/archive/da9199f55b42f9158371f31a7e34d88d1d7c7145.tar.gz", - "hash": "1zwzplbn0a043gxl1q239mbb824qm5jl965qyb6rfg66x3ws5wi8" + "revision": "7b93fb0febd0490a8ccfe3077ab7741a9b4ef44a", + "url": "https://github.com/catppuccin/mpv/archive/7b93fb0febd0490a8ccfe3077ab7741a9b4ef44a.tar.gz", + "hash": "1wzahqxqrblalkcxi4ll05vi5rhmsm3z4mk7d96rfka2c38wc5wj" }, "newsboat": { "type": "Git", diff --git a/modules/home-manager/mpv.nix b/modules/home-manager/mpv.nix index 7d845ce..1f4f39d 100644 --- a/modules/home-manager/mpv.nix +++ b/modules/home-manager/mpv.nix @@ -4,20 +4,13 @@ let inherit (lib) ctp mkIf; cfg = config.programs.mpv.catppuccin; 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 { options.programs.mpv.catppuccin = ctp.mkCatppuccinOpt { name = "mpv"; } // { accent = ctp.mkAccentOpt "mpv"; }; - # Note that the theme is defined across multiple files config.programs.mpv = mkIf enable { - config = ctp.fromINI (themeDir + "/mpv.conf"); - scriptOpts = { - stats = ctp.fromINI (themeDir + "/script-opts/stats.conf"); - uosc = ctp.fromINI (uoscDir + "/script-opts/uosc.conf"); - }; + config.include = sources.mpv + "/themes/${cfg.flavor}/${cfg.accent}.conf"; }; }