diff --git a/flake.nix b/flake.nix index a4615589..46f2d1d7 100644 --- a/flake.nix +++ b/flake.nix @@ -456,7 +456,7 @@ dn42 = nixosSystem' { modules = [ - ./config/lxc-container.nix + self.nixosModules.microvm ./hosts/containers/dn42 { nixpkgs.overlays = [ secrets.overlays.dn42 ]; diff --git a/hosts/containers/dn42/default.nix b/hosts/containers/dn42/default.nix index 9b3764f0..bb3d4c22 100644 --- a/hosts/containers/dn42/default.nix +++ b/hosts/containers/dn42/default.nix @@ -11,20 +11,29 @@ in { # No Firewalling! firewall.enable = false; useDHCP = false; - interfaces.eth0 = { + interfaces.ens3 = { ipv4.addresses = [{ address = address4; prefixLength = 24; }]; }; + defaultGateway = "172.22.99.4"; }; services.resolved.enable = false; c3d2 = { isInHq = true; hq = { - interface = "eth0"; + interface = "ens3"; statistics.enable = true; }; + deployment = { + server = "server10"; + mounts = [ "etc" "home" "var"]; + interfaces = [ { + net = "c3d2"; + mac = "FE:60:4B:B4:4E:38"; + } ]; + }; }; services.collectd.plugins.exec = let @@ -173,7 +182,7 @@ in { protocol static hq4 { ipv4; - route 172.22.99.0/24 via "eth0"; + route 172.22.99.0/24 via "ens3"; } protocol static hq6 {