Configure jellyfin
This commit is contained in:
parent
e10d57878c
commit
8c749b584d
BIN
common/icons/jellyfin.png
Normal file
BIN
common/icons/jellyfin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 436 KiB |
|
@ -21,6 +21,7 @@
|
|||
./services/radicale.nix
|
||||
./services/ddclient.nix
|
||||
./services/redlib.nix
|
||||
./services/jellyfin.nix
|
||||
./filesystems
|
||||
./hardware
|
||||
];
|
||||
|
|
|
@ -144,6 +144,12 @@ in
|
|||
logo = icon "commafeed.png";
|
||||
url = "https://rss.moonythm.dev";
|
||||
}
|
||||
{
|
||||
name = "Jellyfin";
|
||||
subtitle = "Media server";
|
||||
logo = icon "jellyfin.png";
|
||||
url = "https://media.moonythm.dev";
|
||||
}
|
||||
];
|
||||
}
|
||||
# }}}
|
||||
|
|
24
hosts/nixos/lapetus/services/jellyfin.nix
Normal file
24
hosts/nixos/lapetus/services/jellyfin.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }: {
|
||||
imports = [ ../../common/optional/services/nginx.nix ];
|
||||
|
||||
services.nginx.virtualHosts."media.moonythm.dev" =
|
||||
config.satellite.proxy 8096 { }; # This is the default port, and can only be changed via the GUI
|
||||
|
||||
services.jellyfin.enable = true;
|
||||
|
||||
# {{{ Storage
|
||||
environment.persistence."/persist/state".directories = [{
|
||||
directory = "/var/lib/jellyfin";
|
||||
mode = "u=rwx,g=r,o=r";
|
||||
user = config.services.jellyfin.user;
|
||||
group = config.services.jellyfin.group;
|
||||
}];
|
||||
|
||||
environment.persistence."/persist/local/cache".directories = [{
|
||||
directory = "/var/cache/jellyfin";
|
||||
mode = "u=rwx,g=,o=";
|
||||
user = config.services.jellyfin.user;
|
||||
group = config.services.jellyfin.group;
|
||||
}];
|
||||
# }}}
|
||||
}
|
Loading…
Reference in a new issue