wolf.r: manage light.shack web-interface in shackspace

This commit is contained in:
makefu 2020-09-22 00:54:25 +02:00
parent 9ddea79d05
commit 49df24b5bb
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
2 changed files with 14 additions and 0 deletions
krebs
1systems/wolf
2configs/shack

View file

@ -27,6 +27,8 @@ in
<stockholm/krebs/2configs/shack/muellshack.nix>
# provide light control api
<stockholm/krebs/2configs/shack/node-light.nix>
# light.shack web-ui
<stockholm/krebs/2configs/shack/light.shack.nix>
# send mail if muell was not handled
<stockholm/krebs/2configs/shack/muell_mail.nix>
# send mail if muell was not handled

View file

@ -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;
}