aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-21 20:11:09 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-21 20:11:09 +0530
commit124a9c3e040308efdc3b60c235aedd1fdf3f266b (patch)
tree58a2c279bd8c8b90ca49ad975c2e51dce4172470 /services
parent36a74ce6369cb78a1aba5fa58b66f62f6d3c9a37 (diff)
downloadhomeserver-nixos-config-124a9c3e040308efdc3b60c235aedd1fdf3f266b.tar.gz
homeserver-nixos-config-124a9c3e040308efdc3b60c235aedd1fdf3f266b.zip
Fix dumdum author's screwups
Diffstat (limited to 'services')
-rw-r--r--services/bacchus-dashboard/bacchus-dashboard.service.nix2
-rw-r--r--services/bacchus-dashboard/dashboard-template.nix2
2 files changed, 2 insertions, 2 deletions
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>