More individualizing. Pretty cool

This commit is contained in:
Bun 2025-03-18 16:02:00 -04:00
parent 384e510647
commit 572eca5ea5
28 changed files with 57 additions and 84 deletions

View file

@ -0,0 +1,9 @@
{ config, lib, ... }:
{
imports = [
./nginx
./user
];
environment.persistence."/persist".directories = lib.mkIf config.services.jellyfin.enable [ "/var/lib/jellyfin" ];
}

View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
{
services.nginx.virtualHosts."jelly.nixfox.ca" = lib.mkIf config.services.jellyfin.enable {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8096";
proxyWebsockets = true;
};
};
}

View file

@ -0,0 +1,12 @@
{ config, lib, ... }:
{
users = lib.mkIf config.services.jellyfin.enable {
users.jellyfin = {
group = "jellyfin";
extraGroups = [ "nfsShare" ];
isSystemUser = true;
uid = 983;
};
groups.jellyfin = {};
};
}