diff options
Diffstat (limited to 'services/bacchus-dashboard')
| -rw-r--r-- | services/bacchus-dashboard/bacchus-dashboard.service.nix | 2 | ||||
| -rw-r--r-- | services/bacchus-dashboard/dashboard-template.nix | 2 |
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> |
