summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobert Hensing2022-06-25 23:29:49 +0200
committerRobert Hensing2022-09-24 17:38:09 +0100
commitf01fec40994463da0157e8833969c37e4c03ba25 (patch)
treef58bc5ace55fb16274a1b5a4d800b1a189061d81 /nixos
parente77913a680bc9e7bfd2c93047ecfd6697e2402d7 (diff)
nixos/testing/network.nix: Fix specialisations onlyShorthand
Diffstat (limited to 'nixos')
-rw-r--r--nixos/lib/testing/network.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/nixos/lib/testing/network.nix b/nixos/lib/testing/network.nix
index c87abee30c93..4c00a0ba45d3 100644
--- a/nixos/lib/testing/network.nix
+++ b/nixos/lib/testing/network.nix
@@ -93,11 +93,15 @@ let
       specialisation = mkOption {
         type = types.attrsOf (types.submodule {
           options.configuration = mkOption {
-            type = types.submodule ({
-              config.virtualisation.test.nodeName =
-                # assert regular.config.virtualisation.test.nodeName != "configuration";
-                regular.config.virtualisation.test.nodeName;
-            });
+            type = types.submoduleWith {
+              modules = [
+                {
+                  config.virtualisation.test.nodeName =
+                    # assert regular.config.virtualisation.test.nodeName != "configuration";
+                    regular.config.virtualisation.test.nodeName;
+                }
+              ];
+            };
           };
         });
       };