blob: 4e800f5d85382b27ce40e7fa3692c339fb98ca66 (
plain)
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
|
{
pkgs,
config,
lib,
...
}: {
networking = {
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networkmanager.enable = true; # Easiest to use and most distros use this by default.
nameservers = ["1.1.1.1" "1.0.0.1"];
#enableIPv6 = false;
# Configure network proxy if necessary
# proxy.default = "http://user:password@proxy:port/";
# proxy.noProxy = "127.0.0.1,localhost,internal.domain";
};
# Enable the OpenSSH daemon.
networking.firewall = {
enable = false;
# Open ports in the firewall.
# allowedTCPPorts = [ ... ];
# allowedUDPPorts = [ ... ];
};
environment.systemPackages = [
pkgs.innernet
pkgs.iptables
];
# services.tailscale = {
# enable = true;
# };
# services.opensnitch.enable = true;
}
|