nixos/gancio: set default value for settings.baseurl

This commit is contained in:
Jean-Baptiste Giraudeau 2024-09-10 09:31:35 +02:00
parent 432bfec026
commit 3a33b6c3a8
No known key found for this signature in database
GPG Key ID: 7CEF8C9CC2D9933B

View File

@ -54,9 +54,12 @@ in
}; };
baseurl = mkOption { baseurl = mkOption {
type = types.str; type = types.str;
default = ""; default = "http${
example = "/gancio"; lib.optionalString config.services.nginx.virtualHosts."${cfg.settings.hostname}".enableACME "s"
description = "The URL path under which the server is reachable."; }://${cfg.settings.hostname}";
defaultText = lib.literalExpression ''"https://''${cfg.settings.hostname}"'';
example = "https://demo.gancio.org/gancio";
description = "The full URL under which the server is reachable.";
}; };
server = { server = {
socket = mkOption { socket = mkOption {