sbc-deploys/modules/network/default.nix
2023-05-08 13:43:41 -05:00

15 lines
295 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" ];
};
}