blob: 39f593ea12468f67b5dbbde18fddd7759b47c51c (
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
|
{ pkgs, lib, ... }:
{
# imports =
# [
# ./root.nix
# ];
privateNetwork = true;
autoStart = true;
# config is root.nix with networking overridden
config = import ./root.nix {
inherit config;
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 443 ];
};
};
}
|