blob: 111fbe7d30e1476510beae854ee9dd072fbd02cd (
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 = {
wlan0 = {
matchConfig.Name = "wlan0";
networkConfig = { DHCP = "yes"; };
extraConfig = ''
[DHCPv4]
UseDNS=yes
UseDomains=yes
'';
};
};
};
networking = {
hostName = "aptos";
useNetworkd = true;
useDHCP = false;
private-wireguard.enable = true;
};
services.nscd.enable = false;
system.nssModules = lib.mkForce [ ];
# Use systemd-resolved
services.resolved = {
enable = true;
dnssec = "false";
};
my.hardware.networking.wireless.enable = true;
my.services.tailscale.enable = true;
}
|