summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-09-22 00:54:25 +0200
committermakefu <github@syntax-fehler.de>2020-09-22 00:54:25 +0200
commit49df24b5bbfd61b7d86f65d222fc0534732cbc88 (patch)
tree91cfe708c67b34288a7cf98a0ff077a223a2404b /krebs/2configs/shack
parent9ddea79d0537eddee1e6d372403bc2f3bbe07675 (diff)
wolf.r: manage light.shack web-interface in shackspace
Diffstat (limited to 'krebs/2configs/shack')
-rw-r--r--krebs/2configs/shack/light.shack.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/krebs/2configs/shack/light.shack.nix b/krebs/2configs/shack/light.shack.nix
new file mode 100644
index 00000000..8e01cb1b
--- /dev/null
+++ b/krebs/2configs/shack/light.shack.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+let
+ light-shack-src = pkgs.fetchgit {
+ url = "https://git.shackspace.de/rz/standby.shack";
+ rev = "e1b90a0a";
+ sha256 = "07fmz63arc5rxa0a3778srwz0jflp4ad6xnwkkc56hwybby0bclh";
+ };
+ web-dir = "${light-shack-src}/client/www/";
+in
+{
+ services.nginx.virtualHosts."light.shack".locations."/".root = web-dir;
+}