hopglass: test if hopglass works on nixos

This commit is contained in:
Daniel Frank 2019-08-11 16:25:29 +02:00
commit c006338aec
Signed by: tokudan
GPG key ID: 063CCCAD04182D32
4 changed files with 129 additions and 0 deletions

21
hopglass-frontend.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let
hopglass-fe = (pkgs.callPackage ./pkg-hopglass-fe.nix {
conf = ./hopglass-frontend.config.json;
} );
in
{
services.nginx.virtualHosts."map2.hamburg.freifunk.net" = {
forceSSL = true;
enableACME = true;
root = "${hopglass-fe}";
locations."/" = {
extraConfig = ''
index index.html;
etag off;
add_header etag "\"${builtins.substring 11 32 hopglass-fe}\"";
'';
};
};
}