feat: split flake into multiple hosts and add homelab config
This commit is contained in:
parent
cd07c91676
commit
ebe58addaa
19 changed files with 539 additions and 40 deletions
20
hosts/lithium/services/jellyfin.nix
Normal file
20
hosts/lithium/services/jellyfin.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
svcDomain = "tv.${config.networking.domain}";
|
||||
in
|
||||
{
|
||||
services.caddy.virtualHosts."${svcDomain}".extraConfig = ''
|
||||
reverse_proxy :8096
|
||||
'';
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
# NOTE: Keeping this open for now, for internal network use.
|
||||
# ports 8096 for http and 8920 for https
|
||||
openFirewall = true;
|
||||
};
|
||||
environment.systemPackages = [
|
||||
pkgs.jellyfin
|
||||
pkgs.jellyfin-web
|
||||
pkgs.jellyfin-ffmpeg
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue