add plex to media server module

This commit is contained in:
Yan Lin 2025-12-04 00:29:37 +01:00
parent 2c28fa2719
commit 08b360a1d6
5 changed files with 53 additions and 0 deletions

View file

@ -21,6 +21,7 @@ in
radarr.enable = lib.mkEnableOption "Radarr movie management"; # port 7878
jellyfin.enable = lib.mkEnableOption "Jellyfin media server"; # port 8096
deluge.enable = lib.mkEnableOption "Deluge torrent client"; # web port 8112
plex.enable = lib.mkEnableOption "Plex media server"; # port 32400
};
config = {
@ -59,5 +60,12 @@ in
web.enable = true;
web.openFirewall = false;
};
services.plex = lib.mkIf cfg.plex.enable {
enable = true;
user = cfg.user;
group = cfg.group;
openFirewall = false;
};
};
}