From f04b53bad950bdd00b68c67c010ecd7e75340c80 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Fri, 2 May 2025 20:39:25 +0200 Subject: [PATCH 1/2] feat: allow passing the network directly to eval-machines --- data/eval-machines.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/eval-machines.nix b/data/eval-machines.nix index 1e9168e..e6881cd 100644 --- a/data/eval-machines.nix +++ b/data/eval-machines.nix @@ -1,8 +1,10 @@ # Completely stripped down version of nixops' evaluator -{ networkExpr }: +{ + networkExpr ? null, + network ? import networkExpr, +}: let - network = import networkExpr; nwPkgs = network.network.pkgs or { }; lib = network.network.lib or nwPkgs.lib or (import ); evalConfig = From c8da7b86e5782c117db19b312b3053242adfef38 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Mon, 5 May 2025 10:05:44 +0200 Subject: [PATCH 2/2] fix: remove trailing space --- data/eval-machines.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/eval-machines.nix b/data/eval-machines.nix index e6881cd..14de8bb 100644 --- a/data/eval-machines.nix +++ b/data/eval-machines.nix @@ -1,5 +1,5 @@ # Completely stripped down version of nixops' evaluator -{ +{ networkExpr ? null, network ? import networkExpr, }: