diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-12 19:06:15 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-25 16:43:39 +0200 |
commit | 572cb127feab945be51609c75128ba9100deef9f (patch) | |
tree | 9737f66611790b793917e9d528f9ed4f3a0e5c4e /system/services/nix-sync | |
parent | build(flake): update (diff) | |
download | nixos-server-572cb127feab945be51609c75128ba9100deef9f.tar.gz nixos-server-572cb127feab945be51609c75128ba9100deef9f.zip |
feat(system/services/nginx): Add the GPG WKD
Diffstat (limited to 'system/services/nix-sync')
-rw-r--r-- | system/services/nix-sync/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/services/nix-sync/default.nix b/system/services/nix-sync/default.nix index 9826870..5ee31dd 100644 --- a/system/services/nix-sync/default.nix +++ b/system/services/nix-sync/default.nix @@ -185,6 +185,24 @@ ''; }; + extraSettings = lib.mkOption { + type = lib.types.attrsOf lib.types.anything; + example = lib.literalExpression '' + { + locations."/.well-known/openpgpkey/hu/" = { + extraConfig = \'\' + default_type application/octet-stream; + + add_header Access-Control-Allow-Origin * always; + \'\'; + }; + } + ''; + description = '' + Extra config to add the the nginx virtual host. + ''; + }; + interval = lib.mkOption { type = lib.types.int; default = 500; |