all repos — nixfiles @ eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48

System and user configuration, managed by nix and home-manager

linde: enable laminar CI
Alan Pearce alan@alanpearce.eu
Fri, 21 Jun 2024 21:42:50 +0200
commit

eaca59631b9a14b1f2ac3a61e5778c57a4a7ea48

parent

66e56cb0e1c95202133733c0812b794171dc73c5

1 files changed, 18 insertions(+), 0 deletions(-)

jump to
M system/linde.nixsystem/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 @@ extraConfig = ''               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 = {
@@ -964,6 +974,14 @@ fetcher = "channel-nixpkgs";           channel = "nixos-unstable";
         };
       };
+    };
+  };
+
+  services.laminar = {
+    enable = true;
+    settings = {
+      bindHTTP = "[::1]:8002";
+      keepRundirs = 1;
     };
   };
 }