mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
feat: add jellyfin
This commit is contained in:
parent
d1d4082d56
commit
05199cf98e
2 changed files with 28 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
./arr.nix
|
./arr.nix
|
||||||
./flame.nix
|
./flame.nix
|
||||||
./home-assistant.nix
|
./home-assistant.nix
|
||||||
|
./jellyfin.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./plex.nix
|
./plex.nix
|
||||||
|
|
|
||||||
27
modules/homelab/jellyfin.nix
Normal file
27
modules/homelab/jellyfin.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
lib.mkIf config.fireproof.homelab.enable (let
|
||||||
|
domain = "jellyfin.nickolaj.com";
|
||||||
|
in {
|
||||||
|
services.restic.backups.homelab.paths = [config.services.jellyfin.dataDir];
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
http2 = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
proxyPass = "http://localhost:8096/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.jellyfin = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
user = "media";
|
||||||
|
group = "media";
|
||||||
|
};
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue