aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/media/default.nix5
-rw-r--r--services/bacchus-dashboard/bacchus-dashboard.service.nix2
-rw-r--r--services/bacchus-dashboard/dashboard-template.nix2
3 files changed, 6 insertions, 3 deletions
diff --git a/modules/media/default.nix b/modules/media/default.nix
index c883f20..9d149da 100644
--- a/modules/media/default.nix
+++ b/modules/media/default.nix
@@ -1,6 +1,9 @@
{ settings, ... }:
{
- imports = [ ./torrent.nix ];
+ imports = [
+ ./torrent.nix
+ ./servarr.nix
+ ];
systemd.tmpfiles.rules = [
"d ${settings.media.baseDir} 0755 - ${settings.media.group} - -"
diff --git a/services/bacchus-dashboard/bacchus-dashboard.service.nix b/services/bacchus-dashboard/bacchus-dashboard.service.nix
index 8b0fcb9..7a38369 100644
--- a/services/bacchus-dashboard/bacchus-dashboard.service.nix
+++ b/services/bacchus-dashboard/bacchus-dashboard.service.nix
@@ -24,7 +24,7 @@ in
type = types.listOf (types.attrs);
default = [];
};
- embedLink = mkOption { type = types.str; };
+ embedLink = mkOption { type = types.str; default = ""; };
openFirewall = mkEnableOption "Open firewall ports";
host = mkOption { type = types.str; default = "_"; };
port = mkOption { type = types.int; default = 80; };
diff --git a/services/bacchus-dashboard/dashboard-template.nix b/services/bacchus-dashboard/dashboard-template.nix
index 9883a1d..7b34490 100644
--- a/services/bacchus-dashboard/dashboard-template.nix
+++ b/services/bacchus-dashboard/dashboard-template.nix
@@ -125,7 +125,7 @@ in
<section class="links-container">
${concatStringsSep "" (map linkHTML links)}
</section>
- ${if embedLink == null then "" else ''
+ ${if embedLink == null || embedLink == "" then "" else ''
<section class="stats-container">
<iframe src="${embedLink}"></iframe>
</section>