From 9dda890fb54c00507629b1bd46a9e472b9604ccc Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Mon, 20 Apr 2026 14:00:17 +0100 Subject: [PATCH] flake.nix: Add simulation requirements to devShell Adds the required tools listed in `simulation/README.md` to `flake.nix`. --- flake.lock | 6 +++--- flake.nix | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index bb0458d4..8b0d595d 100644 --- a/flake.lock +++ b/flake.lock @@ -126,11 +126,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1771371298, - "narHash": "sha256-AudCpsjP7MfL1mAusLjyyiOz+SF+JujxWzoSAhjk+Og=", + "lastModified": 1777560654, + "narHash": "sha256-ag+TnfQmMTdkU4lQPS6nZzpqHsWAlsQsLCv/1iA6GWg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "bf117123cd658283c5b5c587e59091168323ad61", + "rev": "5a9c58fc6ac2ec48bf9cf4c07de27f912b1ed1cc", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index bdab9901..ae8a4ee5 100644 --- a/flake.nix +++ b/flake.nix @@ -366,12 +366,25 @@ just ripgrep sqlite + + # /simulation + cue + kubectl + talosctl + timoni + qemu + OVMF.fd ]; env = { RUST_BACKTRACE = "full"; RUST_SRC_PATH = "${rustupDevShell.toolchain}/lib/rustlib/src/rust/library"; }; + + # NixOS: OVMF firmware lives in the Nix store, not /usr/share/OVMF. + # talosctl has hardcoded search paths, so we expose the store path for + # the simulation justfile to symlink into a location talosctl can find. + env.OVMF_FD_PATH = "${pkgs.OVMF.fd}/FV"; }; }); }