summary refs log tree commit diff
path: root/lib/tests
diff options
context:
space:
mode:
authorRobert Hensing2023-04-17 20:14:07 +0200
committerRobert Hensing2023-05-06 18:32:59 +0200
commitfd88c79418bbb26758a89d111f136abdc8825acd (patch)
tree1ea0c2194cf8d2f1ebb593372d8332f34ebd443e /lib/tests
parent7459c024950282da952d43762ad93ff30995cc6a (diff)
lib.modules: Change class declaration in module to _class
Diffstat (limited to 'lib/tests')
-rw-r--r--lib/tests/modules/class-check.nix4
-rw-r--r--lib/tests/modules/module-class-is-darwin.nix2
-rw-r--r--lib/tests/modules/module-class-is-nixos.nix2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/tests/modules/class-check.nix b/lib/tests/modules/class-check.nix
index 7874d0e28ec7..293fd4abd628 100644
--- a/lib/tests/modules/class-check.nix
+++ b/lib/tests/modules/class-check.nix
@@ -63,14 +63,14 @@
         modules = [
           ./module-class-is-nixos.nix
           { _file = "foo.nix#darwinModules.default";
-            class = "darwin";
+            _class = "darwin";
             config = {};
             imports = [];
           }
         ];
       };
 
-    sub.nixosOk = { config = {}; class = "nixos"; };
+    sub.nixosOk = { _class = "nixos"; };
     sub.nixosFail = { imports = [ ./module-class-is-darwin.nix ]; };
   };
 }
diff --git a/lib/tests/modules/module-class-is-darwin.nix b/lib/tests/modules/module-class-is-darwin.nix
index d8b60203f707..bacf45626d71 100644
--- a/lib/tests/modules/module-class-is-darwin.nix
+++ b/lib/tests/modules/module-class-is-darwin.nix
@@ -1,4 +1,4 @@
 {
-  class = "darwin";
+  _class = "darwin";
   config = {};
 }
diff --git a/lib/tests/modules/module-class-is-nixos.nix b/lib/tests/modules/module-class-is-nixos.nix
index 04b6e860e890..6d62feedae48 100644
--- a/lib/tests/modules/module-class-is-nixos.nix
+++ b/lib/tests/modules/module-class-is-nixos.nix
@@ -1,4 +1,4 @@
 {
-  class = "nixos";
+  _class = "nixos";
   config = {};
 }