mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
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:
parent
40b8c7465f
commit
a25bb0ab27
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue