48 lines
961 B
Nix
48 lines
961 B
Nix
{ lib, ... }: {
|
|
imports = [ ./wireguard.nix ];
|
|
networking = {
|
|
hostName = "Skipper";
|
|
|
|
extraHosts = ''
|
|
10.8.1.1 proxy
|
|
10.8.1.2 skipper
|
|
10.8.1.3 rico1
|
|
10.8.1.4 rico2
|
|
'';
|
|
|
|
networkmanager = {
|
|
enable = true;
|
|
dns = "systemd-resolved";
|
|
wifi = {
|
|
backend = "iwd";
|
|
powersave = false;
|
|
};
|
|
};
|
|
|
|
useDHCP = lib.mkDefault false;
|
|
|
|
wireless.iwd = {
|
|
enable = true;
|
|
settings = {
|
|
General = {
|
|
AddressRandomization = "network";
|
|
EnableNetworkConfiguration = false;
|
|
};
|
|
Settings = {
|
|
AutoConnect = "yes";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.resolved = {
|
|
enable = true;
|
|
dnssec = "allow-downgrade";
|
|
extraConfig = ''
|
|
[Resolve]
|
|
DNS=9.9.9.11#dns11.quad9.net 2620:fe::11#dns11.quad9.net 149.112.112.11#dns11.quad9.net 2620:fe::fe:11#dns11.quad9.net
|
|
DNSOverTLS=yes
|
|
Domains=~.
|
|
'';
|
|
};
|
|
}
|