Skip to content

Using den.flakeModules.strict fails when using nixos class #632

Description

@rhedgeco

I found the Strict Mode in the docs, and wanted to use it to force correctness in my config. However, when I added it I get this error:

error:
       … while evaluating the attribute 'root.result'
         at «flakes-internal»/call-flake.nix:94:7:
           93|     {
           94|       result =
             |       ^
           95|         if node.flake or true then

       … in the left operand of the update (//) operator
         at «flakes-internal»/call-flake.nix:75:9:
           74|       result =
           75|         outputs
             |         ^
           76|         # We add the sourceInfo attribute for its metadata, as they are

       … while evaluating the option `flake':

       … while evaluating definitions from `/nix/store/jb9w9vg5r706c890hkcn5f2v0vfz0wf7-source/modules/outputs.nix':

       … while evaluating the option `den.classes':

       … while evaluating definitions from `/nix/store/jb9w9vg5r706c890hkcn5f2v0vfz0wf7-source/modules/aspect-schema.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: STRICT MODE

       Attempted to set the option "nixos" in "den.aspects.jetpack" but no explicit definition exists. If this wasn't a mistake, disable STRICT mode or configure an option. e.g.

       den.schema.aspects.options.nixos = lib.mkOption { ... };

       See https://documentation.example

I'm not sure if I'm missing something obvious here, like maybe I have to enable nixos evaluation somewhere. But it certainly seems like nixos should pass the strict check. Any help would be appreciated!

If this is a bug, and I could be pointed in the right direction to look for how to fix it, I would be happy to help contribute. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions