nixos/nixos/configurations/Tytonidae/networking.nix

53 lines
971 B
Nix

{ ... }:
{
systemd.network = {
enable = true;
wait-online.enable = false;
networks = {
"eno2" = {
dns = [
"192.168.31.1"
];
address = [
"192.168.31.25/24"
];
gateway = [
"192.168.31.1"
];
routes = [
{
Gateway = "192.168.31.1";
}
];
matchConfig.Name = "eno2";
# networkConfig = {
# DHCP = "yes";
# IPv6AcceptRA = true;
# };
};
};
};
networking = {
networkmanager.enable = false;
useNetworkd = true;
useDHCP = false;
nftables = {
enable = true;
};
wireless.iwd = {
enable = true;
settings = {
General = {
EnableNetworkConfiguration = true;
};
Network = {
EnableIPv6 = true;
NameResolvingService = "systemd";
};
};
};
firewall.enable = false;
};
}