forked from Fediversity/Fediversity
bring back interfaces?
This commit is contained in:
parent
e42f165ca9
commit
a139d3b4db
1 changed files with 19 additions and 0 deletions
|
@ -18,6 +18,25 @@ in
|
||||||
## REVIEW: Do we actually need that, considering that we have static IPs?
|
## REVIEW: Do we actually need that, considering that we have static IPs?
|
||||||
useDHCP = mkDefault true;
|
useDHCP = mkDefault true;
|
||||||
|
|
||||||
|
interfaces = {
|
||||||
|
eth0 = {
|
||||||
|
ipv4 = {
|
||||||
|
addresses = [
|
||||||
|
{
|
||||||
|
inherit (config.fediversityVm.ipv4) address prefixLength;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
ipv6 = {
|
||||||
|
addresses = [
|
||||||
|
{
|
||||||
|
inherit (config.fediversityVm.ipv6) address prefixLength;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
defaultGateway = lib.mkIf (config.fediversityVm ? ipv4) {
|
defaultGateway = lib.mkIf (config.fediversityVm ? ipv4) {
|
||||||
address = config.fediversityVm.ipv4.gateway;
|
address = config.fediversityVm.ipv4.gateway;
|
||||||
interface = "eth0";
|
interface = "eth0";
|
||||||
|
|
Loading…
Add table
Reference in a new issue