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:
parent
7a9bcd3dfc
commit
0cbbfb3a12
1 changed files with 5 additions and 4 deletions
|
|
@ -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}"
|
||||||
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue