From 8a1c9a26473df144463eb088972b53335634d460 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 4 Sep 2019 20:11:51 -0400 Subject: [PATCH] Make the node config available to other parts of the expression --- morph/staging002.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/morph/staging002.nix b/morph/staging002.nix index df0f2e9a..88bed08e 100644 --- a/morph/staging002.nix +++ b/morph/staging002.nix @@ -1,4 +1,7 @@ { ... }: +let + cfg = import ./staging002-config.nix; +in { imports = [ # Include the results of the hardware scan. @@ -13,7 +16,7 @@ # # The module name is quoted because `1` makes `100tb` look an awful lot like # it should be a number. - "100tb".config = import ./staging002-config.nix; + "100tb".config = cfg; # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database -- GitLab