Plex/JF fix

This commit is contained in:
rasmus-kirk
2025-03-18 22:25:56 +01:00
parent eae2381419
commit b6a6206cea
3 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
Added:
- Plex service
- Expose and sandboxing to Jellyseerr module
- Sandboxed Jellyseerr module and added expose option
Updated:
- If `nixarr.enable` is not enabled other services will automatically now
+9
View File
@@ -16,6 +16,8 @@ in {
example = true;
description = ''
Whether or not to enable the Jellyfin service.
**Conflicting options:** [`nixarr.plex.enable`](#nixarr.plex.enable)
'';
};
@@ -104,6 +106,13 @@ in {
config = mkIf (nixarr.enable && cfg.enable) {
assertions = [
{
assertion = cfg.enable -> !nixarr.plex.enable;
message = ''
The nixarr.jellyfin.vpn.enable option requires the nixarr.plex.enable
option to NOT be set, but it was.
'';
}
{
assertion = cfg.vpn.enable -> nixarr.vpn.enable;
message = ''
+10 -1
View File
@@ -16,10 +16,12 @@ in {
example = true;
description = ''
Whether or not to enable the Plex service.
**Conflicting options:** [`nixarr.jellyfin.enable`](#nixarr.jellyfin.enable)
'';
};
package = mkPackageOption pkgs "plexmediaserver" {};
package = mkPackageOption pkgs "plex" {};
stateDir = mkOption {
type = types.path;
@@ -104,6 +106,13 @@ in {
config = mkIf (nixarr.enable && cfg.enable) {
assertions = [
{
assertion = cfg.enable -> !nixarr.jellyfin.enable;
message = ''
The nixarr.plex.vpn.enable option requires the nixarr.jellyfin.enable
option to NOT be set, but it was.
'';
}
{
assertion = cfg.vpn.enable -> nixarr.vpn.enable;
message = ''