More individualizing. Pretty cool
This commit is contained in:
parent
384e510647
commit
572eca5ea5
28 changed files with 57 additions and 84 deletions
9
modules/system/services/server/jellyfin/default.nix
Normal file
9
modules/system/services/server/jellyfin/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nginx
|
||||
./user
|
||||
];
|
||||
|
||||
environment.persistence."/persist".directories = lib.mkIf config.services.jellyfin.enable [ "/var/lib/jellyfin" ];
|
||||
}
|
11
modules/system/services/server/jellyfin/nginx/default.nix
Normal file
11
modules/system/services/server/jellyfin/nginx/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
12
modules/system/services/server/jellyfin/user/default.nix
Normal file
12
modules/system/services/server/jellyfin/user/default.nix
Normal 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 = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue