mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-09-14 06:22:02 +02:00
service/jellyfin: update metric patching
This commit is contained in:
parent
0326d1e7b5
commit
6d7f4e1448
2 changed files with 17 additions and 10 deletions
|
@ -6,8 +6,15 @@ let
|
|||
port = 8096;
|
||||
# enable monitoring
|
||||
jellyfin-with-metrics = pkgs.jellyfin.overrideAttrs (attrs: {
|
||||
# with this patch the default setting for metrics is changed
|
||||
patches = attrs.patches ++ [ ./enable-metrics.patch ];
|
||||
patches =
|
||||
let
|
||||
existingPatches =
|
||||
if attrs ? patches && builtins.isList attrs.patches
|
||||
then attrs.patches
|
||||
else [ ];
|
||||
in
|
||||
# with this patch the default setting for metrics is changed
|
||||
existingPatches ++ [ ./enable-metrics.patch ];
|
||||
});
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue