aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/run-firecracker-vm/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 00:39:36 +0000
committertv <tv@krebsco.de>2026-11-16 00:39:36 +0000
commitc572066f87d0eda6e236373a451d15b24365b666 (patch)
tree5af8a44474cd3a17df3922767cf67aa6f159e696 /pkgs/run-firecracker-vm/default.nix
parent0c2dcfdadcf863fb7fd1be2c99cf53685e40dfef (diff)
add networking
Give the guest a virtio-net interface backed by the host tap device fctap0, with a static address (172.16.0.2/24, gateway 172.16.0.1) set up by systemd-networkd, and 9.9.9.9 as nameserver. host.nix is a NixOS module for the host that creates fctap0, owned by the given user, and NATs it: imports = [ (import ./host.nix "tv") ]; Firecracker refuses to start if fctap0 doesn't exist.
Diffstat (limited to 'pkgs/run-firecracker-vm/default.nix')
0 files changed, 0 insertions, 0 deletions