Pass class="nixOnDroid"; to evalModules

This is useful for getting better error messages when mixing modules; a module designed for nixos configs sets `_class = "nixos";` and then when you try to use it from a nix-on-droid config it shows an error.

See: https://nixos.org/manual/nixpkgs/unstable/#module-system-lib-evalModules-param-class
This commit is contained in:
Shelvacu 2025-07-12 16:48:29 -07:00 committed by Alexander Sosedkin
parent 40b8c7465f
commit a25bb0ab27

View file

@ -25,6 +25,7 @@ let
rawModule = evalModules {
modules = [ configModule ] ++ nodModules;
specialArgs = extraSpecialArgs;
class = "nixOnDroid";
};
failedAssertions = map (x: x.message) (filter (x: !x.assertion) rawModule.config.assertions);