mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-07 22:20:33 +02:00
35 lines
981 B
Nix
35 lines
981 B
Nix
{ lib, ... }: {
|
|
# This file was populated at runtime with the networking
|
|
# details gathered from the active system.
|
|
networking = {
|
|
nameservers = [ "2a01:4ff:ff00::add:1"
|
|
"2a01:4ff:ff00::add:2"
|
|
"185.12.64.2"
|
|
];
|
|
defaultGateway = "172.31.1.1";
|
|
defaultGateway6 = {
|
|
address = "fe80::1";
|
|
interface = "eth0";
|
|
};
|
|
dhcpcd.enable = false;
|
|
usePredictableInterfaceNames = lib.mkForce false;
|
|
interfaces = {
|
|
eth0 = {
|
|
ipv4.addresses = [
|
|
{ address="95.216.145.45"; prefixLength=32; }
|
|
];
|
|
ipv6.addresses = [
|
|
{ address="2a01:4f9:c011:97d1::1"; prefixLength=64; }
|
|
{ address="fe80::9400:4ff:fe44:c3cd"; prefixLength=64; }
|
|
];
|
|
ipv4.routes = [ { address = "172.31.1.1"; prefixLength = 32; } ];
|
|
ipv6.routes = [ { address = "fe80::1"; prefixLength = 128; } ];
|
|
};
|
|
|
|
};
|
|
};
|
|
services.udev.extraRules = ''
|
|
ATTR{address}=="96:00:04:44:c3:cd", NAME="eth0"
|
|
|
|
'';
|
|
}
|