about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-07-27T20·59+0300
committertazjin <tazjin@tvl.su>2022-07-27T21·54+0000
commit3ecf0b9d6997bc85ae712650629adb6a3ab59909 (patch)
tree43c1d5615bab9d9d8b87ed921cfdf3961a6802e2 /users
parent0fd850045233877b3805613f49ea9eec0f8bd18f (diff)
feat(tazjin/polyanka): host predlozhnik.ru r/4332
Change-Id: I190865e1bf560129d6345009b0ec0cc0d3d9cc9a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5987
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/nixos/modules/predlozhnik.nix10
-rw-r--r--users/tazjin/nixos/polyanka/default.nix1
2 files changed, 11 insertions, 0 deletions
diff --git a/users/tazjin/nixos/modules/predlozhnik.nix b/users/tazjin/nixos/modules/predlozhnik.nix
new file mode 100644
index 000000000000..df402ce29979
--- /dev/null
+++ b/users/tazjin/nixos/modules/predlozhnik.nix
@@ -0,0 +1,10 @@
+# Host predlozhnik.ru, serving //users/tazjin/predlozhnik
+{ depot, ... }:
+
+{
+  services.nginx.virtualHosts."predlozhnik.ru" = {
+    root = depot.users.tazjin.predlozhnik;
+    enableACME = true;
+    forceSSL = true;
+  };
+}
diff --git a/users/tazjin/nixos/polyanka/default.nix b/users/tazjin/nixos/polyanka/default.nix
index fc30b823735e..95d1214ab3ba 100644
--- a/users/tazjin/nixos/polyanka/default.nix
+++ b/users/tazjin/nixos/polyanka/default.nix
@@ -14,6 +14,7 @@ in
     (mod "quassel.nix")
     (mod "www/base.nix")
     (usermod "tgsa.nix")
+    (usermod "predlozhnik.nix")
   ];
 
   # Use the GRUB 2 boot loader.