diff options
| author | Emily <vcs@emily.moe> | 2023-07-16 20:09:12 +0100 |
|---|---|---|
| committer | Emily <vcs@emily.moe> | 2023-07-21 09:22:21 +0100 |
| commit | 724937461f2326bbe512c5d03b145ac8381624b4 (patch) | |
| tree | 2c6a97d9467c508cd0ffc5554f743a0aa8741a3a | |
| parent | 0d3ad9e7ffca6d63ee1e7548b3ef88cb5ea7bc41 (diff) | |
eval-config: set `class`
See [the Nixpkgs manual]. This allows modules to declare themselves
as being only for NixOS or nix-darwin, reducing compatibility
risks. Unmarked modules will continue to behave as before. Technically
a breaking change, but any configuration importing a module explicitly
marked as NixOS-specific was probably broken already.
[the Nixpkgs manual]: https://nixos.org/manual/nixpkgs/unstable/#module-system-lib-evalModules-param-class
| -rw-r--r-- | eval-config.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eval-config.nix b/eval-config.nix index 9663849..57a0381 100644 --- a/eval-config.nix +++ b/eval-config.nix @@ -16,6 +16,7 @@ let }; eval = lib.evalModules (builtins.removeAttrs args [ "lib" ] // { + class = "darwin"; modules = modules ++ [ argsModule ] ++ baseModules; specialArgs = { modulesPath = builtins.toString ./modules; } // specialArgs; }); |
