diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-04-10 17:55:34 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-05-06 18:29:04 +0200 |
commit | 79703eef083d70046873dbb86f08e2ff08f58197 (patch) | |
tree | 262d6370ef51132a9c08fa71d4ce1dba71b6a770 /pkgs/top-level/default.nix | |
parent | 84b1b017026bb1d0a37a8d3ef553f073225b4e8d (diff) |
nixos,nixpkgs: Add module classes
This allows modules that declare their class to be checked. While that's not most user modules, frameworks can take advantage of this by setting declaring the module class for their users. That way, the mistake of importing a module into the wrong hierarchy can be reported more clearly in some cases.
Diffstat (limited to 'pkgs/top-level/default.nix')
-rw-r--r-- | pkgs/top-level/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index b32aabc3a1fdf..f54ce84aedad9 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -82,6 +82,7 @@ in let config = config1; }) ]; + specialArgs.class = "nixpkgsConfig"; }; # take all the rest as-is |