diff --git a/nixos/machines/default.nix b/nixos/machines/default.nix index 259b8a6..e46c74b 100644 --- a/nixos/machines/default.nix +++ b/nixos/machines/default.nix @@ -132,21 +132,18 @@ in type = "virtual"; hypervisorName = "lewis"; - nixosModule = { config, ... }: { + nixosModule = { hypervisorConfig, ... }: { lab = { networking = { dmz.services.enable = true; staticNetworking = true; - # TODO: This seems to cause infinite recursion? Really weird. - # staticIPv4 = config.lab.networking.dmz.ipv4.services; - # staticIPv6 = config.lab.networking.dmz.ipv6.services; - staticIPv4 = "192.168.30.7"; - staticIPv6 = "2a0d:6e00:1a77:30::7"; + staticIPv4 = hypervisorConfig.lab.networking.dmz.ipv4.services; + staticIPv6 = hypervisorConfig.lab.networking.dmz.ipv6.services; }; 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: 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? id = 7; shares = [{