We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c534fe commit 0ca1faaCopy full SHA for 0ca1faa
nix/net.nix
@@ -78,7 +78,9 @@ in
78
# Compute the definitions of the machines.
79
nodes = mkOption {
80
description = "The NixOS configurations for the nodes in the network.";
81
- type = types.attrsOf (import "${config.nixpkgs}/nixos/lib/eval-config.nix" {
+ default = { };
82
+ # on 1st eval nodes is not read and on 2nd lib is taken from config.nixpkgs
83
+ type = types.attrsOf (lib.nixosSystem or (import /${config.nixpkgs}/nixos/lib/eval-config.nix) {
84
inherit system lib;
85
specialArgs = {
86
inherit (config) resources;
0 commit comments