summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2024-06-21 21:42:50 +0200
committerAlan Pearce2024-06-21 21:42:50 +0200
commiteaca59631b9a14b1f2ac3a61e5778c57a4a7ea48 (patch)
treeef32badb1be0b574f0f8cca4147ce8098abc5198 /system
parent66e56cb0e1c95202133733c0812b794171dc73c5 (diff)
downloadnixfiles-eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48.tar.lz
nixfiles-eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48.tar.zst
nixfiles-eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48.zip
linde: enable laminar CI
Diffstat (limited to 'system')
-rw-r--r--system/linde.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/linde.nix b/system/linde.nix
index 5af32281..0137b3b5 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -21,6 +21,7 @@ in
 {
   imports =
     [
+      <personal/modules/laminar.nix>
       <home-manager/nixos>
       <agenix/modules/age.nix>
       <searchix/nix/modules>
@@ -717,6 +718,15 @@ in
               reverse_proxy ${ns.bindAddress}:${toString ns.port}
             '';
           };
+        "ci.alanpearce.eu" =
+          let
+            srv = config.services.laminar;
+          in
+          {
+            extraConfig = ''
+              reverse_proxy ${srv.settings.bindHTTP}
+            '';
+          };
       };
   };
   systemd.services.caddy.serviceConfig = {
@@ -966,4 +976,12 @@ in
       };
     };
   };
+
+  services.laminar = {
+    enable = true;
+    settings = {
+      bindHTTP = "[::1]:8002";
+      keepRundirs = 1;
+    };
+  };
 }