add jellyfin

This commit is contained in:
Charlotte 🦝 Delenk 2024-04-08 21:05:37 +01:00
parent 7ba244db64
commit 3a6e2de021
3 changed files with 40 additions and 1 deletions

View file

@ -32,6 +32,7 @@
./services/prometheus.nix
./services/yiff-stash.nix
./services/reverse-proxy.nix
./services/jellyfin.nix
];
hardware.cpu.amd.updateMicrocode = true;
@ -173,4 +174,21 @@
device = "/dev/sdc3";
}
];
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}

View file

@ -0,0 +1,20 @@
{pkgs, ...}: {
services.jellyfin.enable = true;
environment.systemPackages = [
pkgs.jellyfin
pkgs.jellyfin-web
pkgs.jellyfin-ffmpeg
];
services.caddy.virtualHosts."jellyfin.int.chir.rs" = {
useACMEHost = "int.chir.rs";
logFormat = pkgs.lib.mkForce "";
extraConfig = ''
import baseConfig
reverse_proxy {
to http://localhost:8096
trusted_proxies private_ranges
}
'';
};
}

View file

@ -15,7 +15,7 @@ in {
SOA = {
nameServer = "ns1.chir.rs.";
adminEmail = "lotte@chir.rs";
serial = 31;
serial = 32;
};
NS = [
"ns1.chir.rs."
@ -238,6 +238,7 @@ in {
mautrix-telegram.CNAME = [(ttl zoneTTL (cname "instance-20221213-1915"))];
mautrix-whatsapp.CNAME = [(ttl zoneTTL (cname "instance-20221213-1915"))];
weblate.CNAME = [(ttl zoneTTL (cname "nas"))];
jellyfin.CNAME = [(ttl zoneTTL (cname "nas"))];
_acme-challenge = delegateTo [
"ns1.chir.rs."
"ns2.chir.rs."