diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-06 02:21:13 -0700 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2026-03-06 02:21:13 -0700 |
| commit | 815ad2e347b7036d45dcd1d5e2640393126b4bf9 (patch) | |
| tree | 3f431603a56cdf082ab5bbf8c4ae4b7bb4eaf99b /machines/doretta | |
| parent | 2f6bfa3994137152939d448e05374dccb8d6970b (diff) | |
working microvm setup, but home-manager broken for target vms
Diffstat (limited to 'machines/doretta')
| -rw-r--r-- | machines/doretta/default.nix | 60 |
1 files changed, 34 insertions, 26 deletions
diff --git a/machines/doretta/default.nix b/machines/doretta/default.nix index dc3d4aa..7b08338 100644 --- a/machines/doretta/default.nix +++ b/machines/doretta/default.nix @@ -16,7 +16,9 @@ ../../modules/nixos/environment.nix ../../modules/nixos/tailscale.nix ../../modules/nixos/system-packages.nix - # microvm.host + + # microvm host + ../vm/foolcreek/default.nix ../../modules/nixos/minecraft-server.nix @@ -39,34 +41,40 @@ }; programs.virt-manager.enable = true; - microvm = { - vms = { - foolcreek = { - config = { - microvm.shares = [{ - source = "/nix/store"; - mountPoint = "/nix/.ro-store"; - tag = "ro-store"; - proto = "virtiofs"; - }]; + # microvm = { + # autostart = [ + # "foolcreek" + # ]; + # }; + systemd.network = { + enable = true; + + netdevs."br0" = { + netdevConfig = { + Name = "br0"; + Kind = "bridge"; + }; + }; + networks = { + "10-lan" = { + matchConfig.Name = ["eno2" "vm-*"]; + networkConfig = { Bridge = "br0"; }; + }; + "10-lan-bridge" = { + matchConfig.Name = "br0"; + networkConfig = { + Address = ["10.1.15.101/24"]; + Gateway = "10.1.15.254"; + DNS = ["8.8.8.8"]; }; + linkConfig.RequiredForOnline = "routable"; }; }; - # interfaces = [{ - # type = "tap"; - # id = "vm-foolcreek"; - # mac = "02:00:00:00:00:01"; - # }]; - }; - # systemd.network = { - # enable = true; - # netdevs."10-microvm" = { - # netdevConfig = { - # Name = "microvm"; - # Kind = "bridge"; - # }; - # }; + # netdevs."10-microvm".netdevConfig = { + # Name = "microvm"; + # Kind = "bridge"; + # }; # networks = { # "10-microvm" = { # matchConfig.Name = "microvm"; @@ -121,7 +129,7 @@ # Kind = "bridge"; # }; # }; - # }; + }; # Set your time zone. time.timeZone = "US/Mountain"; |
