blob: 8ea66673390f728c509cc0077d5a858f2e85ce21 (
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
|
{ lib, ... }:
{
# Use systemd-networkd for networking
systemd.network = {
enable = true;
networks = {
enp42s0 = {
matchConfig.Name = "enp42s0";
networkConfig = { DHCP = "yes"; };
extraConfig = ''
[DHCPv4]
UseDNS=yes
UseDomains=yes
'';
};
};
};
networking = {
hostName = "tahoe";
useNetworkd = true;
useDHCP = false;
private-wireguard.enable = true;
firewall.enable = false;
};
services.nscd.enable = false;
system.nssModules = lib.mkForce [ ];
}
|