blob: 22a72511165bffac4afc05b1b6000870ee5c830c (
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
31
32
33
34
35
36
37
38
|
{ 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 [ ];
# Use systemd-resolved
services.resolved = {
enable = true;
dnssec = "false";
};
my.services.tailscale.enable = true;
}
|