Created
June 13, 2014 00:42
-
-
Save chrisfarms/fc876454047b30b86d20 to your computer and use it in GitHub Desktop.
Example config for 4 machines on 2 serperate seperate vlans
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{config, pkgs, ...}: | |
{ | |
imports = [ | |
../virtualisation/guests.nix | |
]; | |
virtualisation.guests = { | |
red1 = { | |
config = ./test1.nix; | |
networks = { | |
red_lan = { | |
ipAddress = "10.0.1.100"; | |
prefixLength = 24; | |
}; | |
}; | |
}; | |
red2 = { | |
config = ./test1.nix; | |
networks = { | |
red_lan = { | |
ipAddress = "10.0.1.101"; | |
prefixLength = 24; | |
}; | |
}; | |
}; | |
blue1 = { | |
config = ./test1.nix; | |
networks = { | |
blue_lan = { | |
ipAddress = "10.0.1.100"; | |
}; | |
}; | |
}; | |
blue2 = { | |
type = "lxc"; | |
config = ./test1.nix; | |
networks = { | |
blue_lan = { | |
ipAddress = "10.0.1.101"; | |
}; | |
}; | |
}; | |
}; | |
# public-facing interface for communication with the outside world. | |
virtualisation.publicInterface = "enp5s0"; | |
# Configure other machines to GRE tunnel to | |
virtualisation.tunnels = [ "192.168.2.2" ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment