graphical/mpv: use extraMakeWrapperArgs instead of wrapping twice

note; this doesn't check for a user configfile anymore,
only using the one in the module.
This commit is contained in:
Elec3137 2026-02-21 21:08:18 -08:00
commit 0cbbfb3a12

View file

@ -2,7 +2,6 @@
pkgs, pkgs,
lib, lib,
config, config,
owoLib,
... ...
}: }:
@ -33,9 +32,11 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = [ environment.systemPackages = [
(owoLib.mkConfWrapper name cfg.package { (cfg.package.override {
globalConfig = pkgs.writeTextDir "${name}.conf" cfg.extraConfig; extraMakeWrapperArgs = [
configArg = "--config-dir="; "--add-flags"
"--config-dir=${pkgs.writeTextDir "${name}.conf" cfg.extraConfig}"
];
}) })
]; ];
}; };