From 572cb127feab945be51609c75128ba9100deef9f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 12 May 2024 19:06:15 +0200 Subject: feat(system/services/nginx): Add the GPG WKD --- system/services/nginx/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'system/services/nginx/default.nix') diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix index 3a0496d..7c2fa55 100644 --- a/system/services/nginx/default.nix +++ b/system/services/nginx/default.nix @@ -1,4 +1,4 @@ -{...}: let +{lib, ...}: let domains = import ./hosts.nix {}; importedRedirects = import ./redirects.nix {}; mkRedirect = { @@ -16,24 +16,29 @@ domain, root, url, + extraSettings ? {}, }: { name = "${domain}"; - value = { - forceSSL = true; - enableACME = true; - root = "${root}"; - }; + value = + lib.recursiveUpdate { + forceSSL = true; + enableACME = true; + root = "${root}"; + } + extraSettings; }; mkNixSyncRepository = { domain, root, url, + extraSettings ? {}, }: { name = "${domain}"; value = { path = "${root}"; uri = "${url}"; + inherit extraSettings; }; }; -- cgit 1.4.1