diff options
| author | tv <tv@krebsco.de> | 2026-11-16 23:16:02 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-17 00:22:23 +0100 |
| commit | aaaeb67ba067b05a6685518ce5d75e92e1de0027 (patch) | |
| tree | dd157a5bda57070ac58c19994e2b196693c39839 | |
| parent | f9f9b3a430b1588e170437c21633d22d5a5d4935 (diff) | |
move the runner to pkgs/run-firecracker-vm
So default.nix (or shell.nix, flake.nix) at the top can become something
else. kernel.nix goes along, as it's only an argument of the runner.
| -rw-r--r-- | host.nix | 4 | ||||
| -rw-r--r-- | pkgs/run-firecracker-vm/default.nix (renamed from default.nix) | 0 | ||||
| -rw-r--r-- | pkgs/run-firecracker-vm/kernel.nix (renamed from kernel.nix) | 3 |
3 files changed, 4 insertions, 3 deletions
@@ -12,7 +12,7 @@ # /var/lib/fc-egress/allowed (see egress.lua): whole domains get passed # through to port 443 of that name, as resolved by the host; domains with # path rules get decrypted (with certificates from our own CA, which the -# guests trust, see default.nix) and only matching requests forwarded. +# guests trust, see pkgs/run-firecracker-vm) and only matching requests forwarded. # The user can change the rules at any time with fc-egress (see fc-egress # help); they apply to the next connection. # @@ -26,7 +26,7 @@ allowed = "${dir}/allowed"; # Where nginx keeps the CA: ca.key, and ca.pem for the guests (see - # caCert in default.nix). + # caCert in pkgs/run-firecracker-vm). stateDir = "/var/lib/fcbr0-egress"; runDir = "/run/fcbr0-egress"; diff --git a/default.nix b/pkgs/run-firecracker-vm/default.nix index 3511dbb..3511dbb 100644 --- a/default.nix +++ b/pkgs/run-firecracker-vm/default.nix diff --git a/kernel.nix b/pkgs/run-firecracker-vm/kernel.nix index 5b43d27..cc21e4a 100644 --- a/kernel.nix +++ b/pkgs/run-firecracker-vm/kernel.nix @@ -1,5 +1,6 @@ # Cut-down guest kernel, based on Firecracker's recommended configuration. -# usage: nix-build --arg kernelPackages 'import ./kernel.nix {}' +# usage: nix-build pkgs/run-firecracker-vm \ +# --arg kernelPackages 'import pkgs/run-firecracker-vm/kernel.nix {}' { pkgs ? import <nixpkgs> {} }: let linux = pkgs.linux_6_18; |
