summary refs log tree commit diff
path: root/machines/lapin/default.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-13 21:31:32 +0100
committerMel <einebeere@gmail.com>2024-11-13 21:31:32 +0100
commit74977a5367666c3b39d1d9c3c80d9fc4f08305c1 (patch)
tree0293f519428f41f1d893c6eae334e3e65b9967ad /machines/lapin/default.nix
parentd39ae5050c81bb0cfea950ba57d32bc8c6304d37 (diff)
downloadnetwork-74977a5367666c3b39d1d9c3c80d9fc4f08305c1.tar.zst
network-74977a5367666c3b39d1d9c3c80d9fc4f08305c1.zip
Import old lapin configuration
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines/lapin/default.nix')
-rw-r--r--machines/lapin/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/machines/lapin/default.nix b/machines/lapin/default.nix
new file mode 100644
index 0000000..2047cba
--- /dev/null
+++ b/machines/lapin/default.nix
@@ -0,0 +1,35 @@
+{ me, pkgs, lib, ... }:
+
+{
+  imports = [
+    ../../modules/common.nix
+
+    ./hardware.nix
+    ./devices.nix
+
+    ../../modules/www.nix
+  ];
+
+  services.nginx.virtualHosts = {
+    "soc.rnrd.eu" = {
+      forceSSL = true;
+      enableACME = true;
+
+      locations."/" = {
+        proxyWebsockets = true;
+        proxyPass = "http://127.0.0.1:1111";
+      };
+    };
+
+    "matrix.rnrd.eu" = {
+      forceSSL = true;
+      enableACME = true;
+
+      locations."/_matrix" = {
+        proxyPass = "http://127.0.0.1:8008";
+      };
+    };
+  };
+
+  system.stateVersion = "23.05";
+}