18 lines
317 B
Nix
18 lines
317 B
Nix
|
{ macAddress ? null, selfIp }:
|
||
|
|
||
|
{
|
||
|
networking = {
|
||
|
interfaces.end0 = {
|
||
|
inherit macAddress;
|
||
|
ipv4.addresses = [
|
||
|
{
|
||
|
address = selfIp;
|
||
|
prefixLength = 24;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
defaultGateway = "192.168.20.1";
|
||
|
nameservers = [ "192.168.20.21" "192.168.20.1" ];
|
||
|
};
|
||
|
}
|