2024-11-16 22:10:11 +05:30
|
|
|
{ lib, ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./wireguard.nix ];
|
|
|
|
systemd = {
|
|
|
|
network = {
|
|
|
|
enable = true;
|
|
|
|
wait-online.enable = false;
|
|
|
|
networks = {
|
|
|
|
"41-ether" = {
|
|
|
|
enable = true;
|
|
|
|
matchConfig = {
|
|
|
|
Type = "ether";
|
|
|
|
Name = "e*";
|
|
|
|
};
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "yes";
|
|
|
|
IPv4Forwarding = "yes";
|
|
|
|
};
|
|
|
|
dhcpV4Config = {
|
|
|
|
UseDomains = true;
|
|
|
|
};
|
|
|
|
linkConfig = {
|
|
|
|
RequiredForOnline = "yes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
|
|
|
domains = [ "~." ];
|
|
|
|
fallbackDns = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
useDHCP = lib.mkDefault false;
|
|
|
|
nameservers = [
|
2024-11-17 17:22:10 +05:30
|
|
|
"10.10.10.1"
|
2024-11-16 22:10:11 +05:30
|
|
|
];
|
|
|
|
useNetworkd = true;
|
2024-11-17 10:28:43 +05:30
|
|
|
nftables.enable = true;
|
2024-11-16 22:10:11 +05:30
|
|
|
};
|
|
|
|
}
|