nixos-config/hosts/x86_64-linux/beleth/networking.nix

39 lines
667 B
Nix

{
config,
lib,
inputs,
...
}: {
imports = [./wireguard.nix];
networking = {
interface = {
enp0s31f6 = {
ipv4 = {
adresses = [
{
address = "88.99.90.90";
prefixLength = 26;
}
];
};
ipv6 = {
adresses = [
{
address = "2a01:4f8:10a:1aab::2";
prefixLength = 80;
}
];
};
};
};
defaultGateway = {
interface = "enp0s31f6";
address = "88.99.90.65";
};
defaultGateway6 = {
interface = "enp0s31f6";
address = "fe80::1";
};
};
}