From c329be48e687e3152e1362a71b76035bfda7215e Mon Sep 17 00:00:00 2001
From: Martin Fischer <martin@push-f.com>
Date: Sun, 13 Apr 2025 22:42:49 +0200
Subject: feat(tente): add lex-surf

---
 nixos/hosts/tente/default.nix | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'nixos/hosts/tente')

diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix
index e87b74b..7ecb793 100644
--- a/nixos/hosts/tente/default.nix
+++ b/nixos/hosts/tente/default.nix
@@ -23,6 +23,7 @@ in
     ./headscale.nix
     ./matrix.nix
     ./monitoring.nix
+    "${sources.my-lex-surf}/service.nix"
     "${sources.my-osm-proposals}/service.nix"
     "${sources.my-geopos-link}/service.nix"
     "${sources.my-rust-features}/service.nix"
@@ -42,6 +43,21 @@ in
   };
   users.groups.www-generator = {};
 
+  services.lex-surf =
+    let
+      domain = "lex.surf";
+    in
+    {
+      enable = true;
+      domain = domain;
+      enableACME = true;
+      fetchUser = "www-generator";
+      nginx = {
+        forceSSL = true;
+        extraConfig = helpers.mkNginxConfig domain;
+      };
+    };
+
   services.osm_proposals =
     let
       domain = "osm-proposals.${baseDomain}";
-- 
cgit v1.2.3