about summary refs log tree commit diff
path: root/nixos/modules/services/web-servers
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2024-06-18 10:39:32 -0700
committerPhilip Taron <philip.taron@gmail.com>2024-06-20 21:05:03 -0700
commit3ac49bcf9448279897b6530f6c68db140b57aac6 (patch)
treed773ab4df218d9b83677521590ecec8dd640f6e0 /nixos/modules/services/web-servers
parentb429742f1c2ae3bfe0eb3b9ad93605fc56a12cf6 (diff)
nixos/bluemap: fix defaults issue with `services.bluemap.host`
The default for this value depends on `config.networking.domain`, which is typed as `types.nullOr types.str` in nixos/modules/tasks/network-interfaces.nix

As a result, the default for `services.bluemap.host` either has to be `types.nullOr types.str`, or we need to drop the default.

Based on PR feedback, this commit drops the default and requires configuration through the `services.bluemap.host` option.

While this is a breaking change, since the module is a month old, there should be very few users so far.
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r--nixos/modules/services/web-servers/bluemap.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/services/web-servers/bluemap.nix b/nixos/modules/services/web-servers/bluemap.nix
index 28eaad3db313e..731468fd9a0ec 100644
--- a/nixos/modules/services/web-servers/bluemap.nix
+++ b/nixos/modules/services/web-servers/bluemap.nix
@@ -71,9 +71,7 @@ in {
 
     host = mkOption {
       type = lib.types.str;
-      default = "bluemap.${config.networking.domain}";
-      defaultText = lib.literalExpression "bluemap.\${config.networking.domain}";
-      description = "Domain to configure nginx for";
+      description = "Domain on which nginx will serve the bluemap webapp";
     };
 
     onCalendar = mkOption {