Unverified Commit 3a33b6c3 authored by Jean-Baptiste Giraudeau's avatar Jean-Baptiste Giraudeau
Browse files

nixos/gancio: set default value for settings.baseurl

parent 432bfec0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -54,9 +54,12 @@ in
          };
          baseurl = mkOption {
            type = types.str;
            default = "";
            example = "/gancio";
            description = "The URL path under which the server is reachable.";
            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 full URL under which the server is reachable.";
          };
          server = {
            socket = mkOption {