summary refs log tree commit diff
path: root/host/Spacebar-nginx/containers/spacebar-server-dev-nix/container.nix
blob: 277a5561d6c4f42ccc3889db86a2ce427dc7e2ac (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
{ pkgs, lib, spacebar-server, ... }:

{
  privateNetwork = true;
  autoStart = true;
  specialArgs = {
    inherit spacebar-server;
  };  
  config = { lib, pkgs, spacebar-server, ... }: {
    imports = [ ./root.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 5432 ];
    };
  };  
  hostAddress = "192.168.101.1";
  localAddress = "192.168.100.1";
}