medaserver profile

This commit is contained in:
Adrian Gunnar Lauterer 2024-05-01 16:08:10 +02:00
parent 86fea7e3f6
commit 3b987a4817
4 changed files with 43 additions and 9 deletions

View File

@ -16,6 +16,7 @@
../../profiles/base.nix ../../profiles/base.nix
../../profiles/sops.nix ../../profiles/sops.nix
../../profiles/ai.nix ../../profiles/ai.nix
../../profiles/mediaserver.nix
../../services/smb.nix ../../services/smb.nix
../../services/torrent.nix ../../services/torrent.nix
@ -62,9 +63,6 @@
tailscale tailscale
nfs-utils nfs-utils
cifs-utils cifs-utils
jellyfin
jellyfin-web
jellyfin-mpv-shim
jftui jftui
sonixd sonixd
unpackerr unpackerr
@ -87,12 +85,6 @@
##productivity ##productivity
#services.tandoor-recipes.enable = true; #services.tandoor-recipes.enable = true;
##media
users.groups.media.members = ["jellyfin"]; #have media directory owned by media group
services.jellyfin.group = "media";
services.jellyfin.enable = true;
# services.komga.enable = true; # services.komga.enable = true;
#services.polaris.enable = true; #services.polaris.enable = true;

15
profiles/mediaserver.nix Normal file
View File

@ -0,0 +1,15 @@
{ config, pkgs, lib, ... }:
{
imports =
[
./base.nix
../services/podgrab.nix
../services/jellyfin.nix
];
environment.systemPackages = with pkgs.unstable; [
];
}

18
services/jellyfin.nix Normal file
View File

@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
nfs-utils
cifs-utils
jellyfin
jellyfin-web
jellyfin-mpv-shim
jftui
sonixd
unpackerr
];
users.groups.media.members = ["jellyfin"]; #have media directory owned by media group
services.jellyfin.group = "media";
services.jellyfin.enable = true;
services.jellyfin.openFirewall = true;
}

9
services/podgrab.nix Normal file
View File

@ -0,0 +1,9 @@
{ config, pkgs, lib, ... }:
{
environment.systemPackages = [
pkgs.podgrab
];
services.podgrab.enable = true;
services.podgrab.port = 4242;
networking.firewall.allowedTCPPorts = [ config.services.podgrab.port ];
}