summaryrefslogtreecommitdiff
path: root/host/software/tree.kummerlaender.eu.nix
blob: a4b7fed47ebc0c40e78551ccb98c325f3c869770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs, ... }:

let
  result = import (pkgs.fetchgit {
    url    = "gitea@localhost:web/tree_content.git";
    rev    = "72ebbabe1466d2e7ec3f7b6035bf78dc88bdc35a";
    sha256 = "0dqlqrz8wlgqkrqsn0fk861j81msrprmh7k1q733smgrykmr2v09";
  }) { };
in {
  services.nginx.virtualHosts."tree.kummerlaender.eu" = {
    addSSL = true;
    enableACME = true;
    locations = {
      "/" = {
        root = "${result}";
      };
    };
  };
}