configuration.nix/hosts/rico2/network.nix
Adithya Nair c034a10aef
Revert "remove wireguard stuff"
This reverts commit 9b8ec24c63.
This reverts commit ec04addf62.
2023-10-10 18:29:53 +05:30

34 lines
653 B
Nix

{lib, ...}: {
imports = [./wireguard.nix];
networking = {
hostName = "Rico2";
useDHCP = lib.mkDefault false;
};
services.resolved.enable = true;
systemd.network = {
enable = true;
networks = {
"40-ether" = {
enable = true;
matchConfig = {
Type = "ether";
};
networkConfig = {
DHCP = "yes";
IgnoreCarrierLoss = "3s";
};
dhcpV4Config = {
UseDomains = true;
};
ipv6AcceptRAConfig = {
UseDomains = true;
};
linkConfig = {
RequiredForOnline = "yes";
};
};
};
};
}