blob: 57eb7a466923ce7fba70bd574183f7cf54c4cdec (
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
37
38
39
40
41
42
43
|
{
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.avahi = {
enable = true;
publish = {
enable = true;
addresses = true;
};
};
# services.opensnitch.enable = true;
}
|