From cca554ebfbbb075a08ad809a56c738160fff58a3 Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Sat, 4 Oct 2025 09:08:22 +0200 Subject: [PATCH] feat: enable atuin sync server Signed-off-by: Lander Van den Bulcke --- hosts/hosting-01/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/hosting-01/default.nix b/hosts/hosting-01/default.nix index e061474..1ddec9b 100644 --- a/hosts/hosting-01/default.nix +++ b/hosts/hosting-01/default.nix @@ -139,6 +139,23 @@ in }; }; + services.atuin = { + enable = true; + openRegistration = true; + database = { + uri = "postgresql://atuin@db-01.tailnet.escapeangle.com:5432/atuin"; + createLocally = false; + }; + }; + + services.nginx.virtualHosts."atuin.escapeangle.com" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:${toString config.services.atuin.port}"; + }; + }; + security.acme.defaults.email = "landervandenbulcke@gmail.com"; security.acme.acceptTerms = true;