Skip to content

Commit

Permalink
feat: introduce special args
Browse files Browse the repository at this point in the history
This is based on #190, specifically
633852a.

Co-authored-by: Dusk Banks <[email protected]>
Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk and bb010g committed Sep 18, 2024
1 parent d13c3d6 commit 534d060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/eval-machines.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let
lib = network.network.lib or nwPkgs.lib or (import <nixpkgs/lib>);
evalConfig =
network.network.evalConfig or ((nwPkgs.path or <nixpkgs>) + "/nixos/lib/eval-config.nix");
specialArgs = network.specialArgs or { };
runCommand = network.network.runCommand or nwPkgs.runCommand or (import <nixpkgs> { }).runCommand;
in
with lib;
Expand Down Expand Up @@ -77,6 +78,7 @@ rec {
map (machineName: {
name = machineName;
value = import evalConfig {
inherit specialArgs;
# Force decide system in module system
system = null;
modules = modules {
Expand All @@ -93,6 +95,7 @@ rec {
map (machineName: {
name = machineName;
value = import evalConfig {
inherit specialArgs;
# Force decide system in module system
system = null;
modules = modules {
Expand Down

0 comments on commit 534d060

Please sign in to comment.