add jellyfin
This commit is contained in:
parent
7ba244db64
commit
3a6e2de021
3 changed files with 40 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
20
config/services/jellyfin.nix
Normal file
20
config/services/jellyfin.nix
Normal 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
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue