| |
|
|
|
|
|
|
|
|
| |
Firecracker's guest configuration has no KVM, so a guest had no
/dev/kvm, even where the VMM offered hardware virtualization (Cloud
Hypervisor does by default, its CPUs show svm), and nothing could be
tested in a VM there, not even a NixOS VM test. Now the cut-down
kernel has KVM (and kvm-amd, kvm-intel) as modules, which udev loads
when the CPU has svm or vmx, i.e. when the VMM offers it (see
run-firecracker-vm --nested).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
nixpkgs' systemd comes with much a guest has no use for: importd (with
gnupg and openldap), cryptsetup, TPM2, FIDO2, homed, repart, sysupdate,
portabled, machined, nspawn and vmspawn, journal-remote (microhttpd,
gnutls), coredump (elfutils), BPF (libbpf), qrencode, pwquality,
AppArmor. And dbus brings in a second systemd, systemd-minimal (23M),
X11's libraries, and AppArmor, too. Leaving all that out means
building systemd, dbus and dbus-broker (which links libsystemd) from
source, on every nixpkgs bump, so it's a base module (--arg base
'[ base/systemd.nix ]'), for whoever thinks that's worth it. NixOS
leaves out the units of what the package lacks; coredump the base
system turns off already, and the module takes systemd-bsod out of the
initrd (where NixOS has it unconditionally), as systemd builds it only
with qrencode.
|
|
|
kernelPackages and caCert
The base system could only be changed by its two arguments, and a
kernel set in a layer was a conflict with the base's plain
boot.kernelPackages = kernelPackages. Now base takes NixOS modules,
merged into the base system, i.e. layer 0 and its image, so what all
layers share goes there, the kernel above all: kernel.nix is such a
module now, and no package any more, so it moves to base/ (--arg base
'[ base/kernel.nix ]', like --arg layers '[ layers/nix.nix ]'), and the
base's linuxPackages_latest is only a default. A layer can set the
kernel, too, now, but then the base image keeps its own kernel's
modules (161M for linuxPackages_latest), unused.
caCert wasn't used: the egress proxy's CA stays where modules/host puts
it, picked up if it's there; another one is
security.pki.certificateFiles, in base or a layer.
|