Skip to content

Commit b3c793c

Browse files
committed
net.nix: Turn resources.machines into an alias for the nodes
1 parent 8fd2cff commit b3c793c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

nix/net.nix

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,18 @@ in
9393
imports = [
9494
(defineResource "sshKeyPairs" ./ssh-keypair.nix)
9595
(defineResource "commandOutput" ./command-output.nix)
96-
(defineResource "machines" ./machine-resource.nix)
9796
];
98-
machines = config.nodes;
99-
_module.check = false;
97+
options.machines = lib.mkOption {
98+
description = ''
99+
An alias for the `nodes`.
100+
'';
101+
readOnly = true;
102+
type = types.raw;
103+
};
104+
config = {
105+
machines = config.nodes;
106+
_module.check = false;
107+
};
100108
})
101109
];
102110
};

0 commit comments

Comments
 (0)