summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-21 21:42:50 +0200
committerAlan Pearce2024-06-21 21:42:50 +0200
commiteaca59631b9a14b1f2ac3a61e5778c57a4a7ea48 (patch)
treeef32badb1be0b574f0f8cca4147ce8098abc5198
parent66e56cb0e1c95202133733c0812b794171dc73c5 (diff)
downloadnixfiles-eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48.tar.lz
nixfiles-eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48.tar.zst
nixfiles-eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48.zip
linde: enable laminar CI
m---------packages0
-rw-r--r--system/linde.nix18
2 files changed, 18 insertions, 0 deletions
diff --git a/packages b/packages
-Subproject d7485c5f7ace65db560d8023906d079928e1182
+Subproject e68afb21279ff159d2e91ee60a2e71cedae2cea
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;
+    };
+  };
 }