Plex/JF fix
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Added:
|
Added:
|
||||||
- Plex service
|
- Plex service
|
||||||
- Expose and sandboxing to Jellyseerr module
|
- Sandboxed Jellyseerr module and added expose option
|
||||||
|
|
||||||
Updated:
|
Updated:
|
||||||
- If `nixarr.enable` is not enabled other services will automatically now
|
- If `nixarr.enable` is not enabled other services will automatically now
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ in {
|
|||||||
example = true;
|
example = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether or not to enable the Jellyfin service.
|
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) {
|
config = mkIf (nixarr.enable && cfg.enable) {
|
||||||
assertions = [
|
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;
|
assertion = cfg.vpn.enable -> nixarr.vpn.enable;
|
||||||
message = ''
|
message = ''
|
||||||
|
|||||||
+10
-1
@@ -16,10 +16,12 @@ in {
|
|||||||
example = true;
|
example = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether or not to enable the Plex service.
|
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 {
|
stateDir = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
@@ -104,6 +106,13 @@ in {
|
|||||||
|
|
||||||
config = mkIf (nixarr.enable && cfg.enable) {
|
config = mkIf (nixarr.enable && cfg.enable) {
|
||||||
assertions = [
|
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;
|
assertion = cfg.vpn.enable -> nixarr.vpn.enable;
|
||||||
message = ''
|
message = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user