kilgharrah: set up jellyfin
This commit is contained in:
parent
4f85fb54d8
commit
5a617f9cb3
|
@ -46,10 +46,18 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
qenya.services.jellyfin = {
|
||||||
|
enable = true;
|
||||||
|
domain = "jellyfin.qenya.tel";
|
||||||
|
};
|
||||||
|
|
||||||
randomcat.services.zfs.datasets = {
|
randomcat.services.zfs.datasets = {
|
||||||
"rpool_albion/data" = { mountpoint = "none"; };
|
"rpool_albion/data" = { mountpoint = "none"; };
|
||||||
"rpool_albion/data/steam" = { mountpoint = "/home/qenya/.local/share/Steam"; };
|
"rpool_albion/data/steam" = { mountpoint = "/home/qenya/.local/share/Steam"; };
|
||||||
|
"rpool_albion/state" = { mountpoint = "none"; };
|
||||||
|
"rpool_albion/state/jellyfin" = { mountpoint = "/var/lib/jellyfin"; };
|
||||||
|
"rpool_albion/srv" = { mountpoint = "none"; };
|
||||||
|
"rpool_albion/srv/jellyfin" = { mountpoint = "/srv/jellyfin"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./actual.nix
|
./actual.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
|
./jellyfin.nix
|
||||||
./pipewire-low-latency.nix
|
./pipewire-low-latency.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
31
services/jellyfin.nix
Normal file
31
services/jellyfin.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.qenya.services.jellyfin;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.qenya.services.jellyfin = {
|
||||||
|
enable = mkEnableOption "Jellyfin";
|
||||||
|
domain = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
${cfg.domain} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:8096/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
|
services.jellyfin.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue