From ecd16fbbcc2a949768a2cf0c7aba30a1c55392ed Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Tue, 6 Oct 2026 10:52:41 -0500 Subject: networking stuff, experiment with windows vm? --- hosts/ganymede/mythra.nix | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 hosts/ganymede/mythra.nix (limited to 'hosts/ganymede/mythra.nix') diff --git a/hosts/ganymede/mythra.nix b/hosts/ganymede/mythra.nix new file mode 100644 index 0000000..9b74250 --- /dev/null +++ b/hosts/ganymede/mythra.nix @@ -0,0 +1,54 @@ +{pkgs, ...}: { + systemd.network.netdevs."10-tap0" = { + netdevConfig = { + Name = "tap0"; + Kind = "tap"; + }; + }; + + systemd.network.netdevs."10-mythra" = { + netdevConfig = { + Name = "mythra0"; + Kind = "bridge"; + }; + }; + + systemd.network.networks."20-mythra-bridge-bind" = { + matchConfig.Name = ["enp56s0u1u4" "tap0"]; + networkConfig.Bridge = "mythra0"; + }; + + systemd.network.networks."30-mythra-net" = { + matchConfig.Name = "mythra0"; + networkConfig = { + Address = "192.168.12.1/24"; + }; + }; + + # systemd.services.windows-vm = { + # description = "QEMU Windows 11 IoT LTSC VM"; + # wantedBy = ["multi-user.target"]; + # after = ["network-online.target" "systemd-networkd.service"]; + # wants = ["network-online.target"]; + + # serviceConfig = { + # Type = "simple"; + # User = "root"; + + # ExecStart = '' + # ${pkgs.qemu_kvm}/bin/qemu-system-x86_64 \ + # -enable-kvm \ + # -m 4096 \ + # -smp 4 \ + # -cpu host \ + # -drive file=/media/windows.qcow2,format=qcow2 \ + # -netdev tap,id=net0,ifname=tap0,script=no,downscript=no \ + # -device e1000e,netdev=net0 \ + # -nographic + # ''; + + # Restart = "on-failure"; + # RestartSec = "10s"; + # }; + # }; +} -- cgit v1.3.1