Files
nixos-router/tests/common.nix
T
nilsandClaude Sonnet 5.5 b9c63273e4 Add signed updates from a bundle or a URL
router-release signs a release as a binary cache; router-update verifies
it against the router's update keys, migrates settings.json, and applies
it with commit-confirm. Includes the web UI page and a VM test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
2026-10-29 13:34:21 +01:00

25 lines
597 B
Nix

# Pieces shared by the VM tests.
{
# `fail` in a test script also passes on "command not found", so make sure
# the tools the scripts rely on are really there.
tools =
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
dnsutils
netcat-openbsd
curl
tcpdump
wireguard-tools
jq
];
};
# `driverInteractive` uses the full QEMU, which would open a window per VM;
# `nix run .#lab` wants the consoles in the terminal instead.
interactiveDefaults.virtualisation.qemu.options = [
"-display"
"none"
];
}