This repository has no description
1.4 kB
51 lines
1{ self, config, lib, pkgs, ... }:
2
3{
4 imports = [
5 ../../2configs/retiolum.nix
6 ../../2configs/mail/internet-gateway.nix
7 ../../2configs/binary-cache/server.nix
8 # ../../2configs/matrix.nix
9 ../../2configs/gsm-wiki.nix
10 ../../2configs/monitoring/telegraf.nix
11
12 # sync-containers
13 ../../2configs/consul.nix
14 ../../2configs/services/flix/container-host.nix
15 ../../2configs/services/radio/container-host.nix
16 ../../2configs/ubik-host.nix
17 ../../2configs/orange-host.nix
18 (self.inputs.stockholm + "/krebs/2configs/hotdog-host.nix")
19
20 # other containers
21 ../../2configs/riot.nix
22
23 # proxying of services
24 ../../2configs/services/radio/proxy.nix
25 ../../2configs/services/flix/proxy.nix
26 ../../2configs/services/coms/proxy.nix
27 ];
28
29 krebs.build.host = config.krebs.hosts.neoprism;
30
31 networking.firewall.allowedTCPPorts = [ 80 443 ];
32 security.acme.acceptTerms = true;
33 security.acme.defaults.email = "acme@lassul.us";
34 services.nginx = {
35 enable = true;
36 recommendedGzipSettings = true;
37 recommendedOptimisation = true;
38 recommendedTlsSettings = true;
39
40 enableReload = true;
41
42 virtualHosts.default = {
43 default = true;
44 locations."= /etc/os-release".extraConfig = ''
45 default_type text/plain;
46 alias /etc/os-release;
47 '';
48 locations."~ ^/.well-known/acme-challenge/".root = "/var/lib/acme/acme-challenge";
49 };
50 };
51}