rework layout
This commit is contained in:
parent
4e2263c590
commit
1aa2e0ce63
8 changed files with 255 additions and 196 deletions
|
|
@ -7,7 +7,7 @@
|
|||
let
|
||||
cfg = config.services.jellyfin;
|
||||
|
||||
plugin = name: pks."jellyfin-plugin-${name}";
|
||||
plugin = name: pkgs."jellyfin-plugin-${name}";
|
||||
|
||||
per-file = pkg: fn: lib.lists.foldl (acc: dll: acc ++ (fn dll)) pkg.pluginLibraries;
|
||||
|
||||
|
|
@ -25,9 +25,9 @@ let
|
|||
BindReadOnlyPaths = per-file pkg (
|
||||
name: "${pkg}/${name}:${cfg.dataDir}/plugins/${pkg.name}/${name}"
|
||||
);
|
||||
BindPaths = per-file pkg (
|
||||
name: lib.optional (rw name) "${cfg.dataDir}/plugins/${pkg.name}/${name}"
|
||||
);
|
||||
BindPaths = builtins.map (name: "${cfg.dataDir}/plugins/${pkg.name}/${name}") [
|
||||
"meta.json"
|
||||
];
|
||||
};
|
||||
|
||||
type.plugin = lib.types.addCheck lib.types.package (builtins.hasAttr "pluginLibraries");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue