2017-12-24 12:21:43 -05:00
|
|
|
{ dev ? "armory0" }:
|
2016-02-23 13:19:18 -05:00
|
|
|
|
|
|
|
{
|
2017-12-24 12:21:43 -05:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="a4a2", NAME="${staticDevName}"
|
|
|
|
'';
|
2016-02-23 13:19:18 -05:00
|
|
|
|
2017-12-24 12:21:43 -05:00
|
|
|
networking = {
|
|
|
|
interfaces."${staticDevName}".ip4 = [{
|
|
|
|
address = "10.0.0.2";
|
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
nat = {
|
|
|
|
enable = true;
|
|
|
|
internalInterfaces = [ dev ];
|
2016-02-23 13:19:18 -05:00
|
|
|
};
|
2017-12-24 12:21:43 -05:00
|
|
|
extraHosts = "10.0.0.1 armory";
|
|
|
|
};
|
2016-02-23 13:19:18 -05:00
|
|
|
}
|