mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add macvtap networking to microvms
This commit is contained in:
parent
8cb904c44c
commit
24655ece76
7 changed files with 95 additions and 29 deletions
|
@ -3,6 +3,7 @@
|
|||
inputs,
|
||||
lib,
|
||||
nixos-hardware,
|
||||
nodeSecrets,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
@ -25,7 +26,16 @@
|
|||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "r8169"];
|
||||
|
||||
extra.microvms.test.system = "x86_64-linux";
|
||||
extra.microvms = let
|
||||
macOffset = config.lib.net.mac.addPrivate nodeSecrets.networking.interfaces."wan-nic".mac;
|
||||
in {
|
||||
test = {
|
||||
autostart = true;
|
||||
mac = macOffset "00:00:00:00:00:01";
|
||||
macvtap = "wan";
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
};
|
||||
|
||||
#services.authelia.instances.main = {
|
||||
# enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue