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,
|
||||
lib,
|
||||
config,
|
||||
owoLib,
|
||||
...
|
||||
}:
|
||||
|
||||
|
|
@ -33,9 +32,11 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
(owoLib.mkConfWrapper name cfg.package {
|
||||
globalConfig = pkgs.writeTextDir "${name}.conf" cfg.extraConfig;
|
||||
configArg = "--config-dir=";
|
||||
(cfg.package.override {
|
||||
extraMakeWrapperArgs = [
|
||||
"--add-flags"
|
||||
"--config-dir=${pkgs.writeTextDir "${name}.conf" cfg.extraConfig}"
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue