fix use of globals within VM
This commit is contained in:
parent
e7f35bf1bd
commit
45d9ab3cb7
1 changed files with 5 additions and 8 deletions
|
@ -132,21 +132,18 @@ in
|
||||||
type = "virtual";
|
type = "virtual";
|
||||||
hypervisorName = "lewis";
|
hypervisorName = "lewis";
|
||||||
|
|
||||||
nixosModule = { config, ... }: {
|
nixosModule = { hypervisorConfig, ... }: {
|
||||||
lab = {
|
lab = {
|
||||||
networking = {
|
networking = {
|
||||||
dmz.services.enable = true;
|
dmz.services.enable = true;
|
||||||
staticNetworking = true;
|
staticNetworking = true;
|
||||||
# TODO: This seems to cause infinite recursion? Really weird.
|
staticIPv4 = hypervisorConfig.lab.networking.dmz.ipv4.services;
|
||||||
# staticIPv4 = config.lab.networking.dmz.ipv4.services;
|
staticIPv6 = hypervisorConfig.lab.networking.dmz.ipv6.services;
|
||||||
# staticIPv6 = config.lab.networking.dmz.ipv6.services;
|
|
||||||
staticIPv4 = "192.168.30.7";
|
|
||||||
staticIPv6 = "2a0d:6e00:1a77:30::7";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
vm = {
|
vm = {
|
||||||
# # TODO: would be cool to create a check that a mac address is only ever assigned to one VM.
|
# TODO: would be cool to create a check that a mac address is only ever assigned to one VM.
|
||||||
# # TODO: idea: what if we generated these IDs by hashing the host name and reducing that to the amount of hosts possible?
|
# TODO: idea: what if we generated these IDs by hashing the host name and reducing that to the amount of hosts possible?
|
||||||
id = 7;
|
id = 7;
|
||||||
|
|
||||||
shares = [{
|
shares = [{
|
||||||
|
|
Loading…
Reference in a new issue