From 9eafd6f53eef528df8854a4cad6636907ebbf682 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 30 May 2024 13:04:44 +0100 Subject: [PATCH] feat: use hockeypuck instead of sks --- applications/open_governance/keyserver.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/applications/open_governance/keyserver.nix b/applications/open_governance/keyserver.nix index 8629e33..be682d4 100644 --- a/applications/open_governance/keyserver.nix +++ b/applications/open_governance/keyserver.nix @@ -41,9 +41,21 @@ in { } ]; - services.sks = { + services.hockeypuck = { enable = true; - hkpPort = port; + port = port; + }; + + # hockeypuck needs a database backend + services.postgresql = { + enable = true; + ensureDatabases = ["hockeypuck"]; + ensureUsers = [ + { + name = "hockeypuck"; + ensureDBOwnership = true; + } + ]; }; services.nginx.virtualHosts = {