diff --git a/nixos/modules/services/web-apps/gancio.nix b/nixos/modules/services/web-apps/gancio.nix index 87346caaaa969fa..944256849ad46b6 100644 --- a/nixos/modules/services/web-apps/gancio.nix +++ b/nixos/modules/services/web-apps/gancio.nix @@ -54,8 +54,11 @@ in }; baseurl = mkOption { type = types.str; - default = ""; - example = "/gancio"; + default = "http${ + lib.optionalString config.services.nginx.virtualHosts."${cfg.settings.hostname}".enableACME "s" + }://${cfg.settings.hostname}"; + defaultText = lib.literalExpression ''"https://''${cfg.settings.hostname}"''; + example = "https://demo.gancio.org/gancio"; description = "The URL path under which the server is reachable."; }; server = {