summary refs log tree commit diff
path: root/host/Rory-nginx/services/containers/pluralcontactbotpoc/container.nix
blob: 837ae11b3bbd1a8c06a5871eb01d1b6ed510e6e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ conduit, ... }:

{
  privateNetwork = true;
  autoStart = true;
  specialArgs = {
    inherit conduit;
  };
  config =
    {
      lib,
      pkgs,
      conduit,
      ...
    }:
    {
      imports = [
        ./root.nix
        ../shared.nix
      ];
      environment.etc."resolv.conf".text = ''
        nameserver 8.8.8.8
        nameserver 8.4.4.8
        nameserver 1.1.1.1
        nameserver 1.0.0.1
      '';
      networking.firewall = {
        enable = true;
        allowedTCPPorts = [ 80 ];
      };
    };
  hostAddress = "192.168.100.10";
  localAddress = "192.168.100.11";
  hostAddress6 = "fc00::1";
  localAddress6 = "fc00::2";
}