nixos-configs/devices/nos/modules/jellyfin/packages.nix
matt1432 25ab7c3b2d
All checks were successful
Discord / discord commits (push) Successful in 45s
feat(servers): add first config for jellyfin
2024-03-01 21:36:57 -05:00

24 lines
507 B
Nix

{
pkgs,
lib,
...
}: let
inherit (lib) hasAttr optionals;
in {
environment.systemPackages = [
pkgs.jellyfin
pkgs.jellyfin-ffmpeg
(pkgs.jellyfin-web.overrideAttrs (_: o: {
patches =
[
(pkgs.fetchpatch {
name = "skipintro.patch";
url = "https://pastebin.com/raw/EEgvReaw";
hash = "sha256-kfvOz0ukDY09kkbmZi24ch5KWJsVcThNEVnjlk4sAC0=";
})
]
++ optionals (hasAttr "patches" o) o.patches;
}))
];
}