Skip to content

Please describe the "generic" module better #2197

Description

@removed-user

I'm using

let
exModule = {example, ...}:{
}
 --- in above
mkflake

I've tried using

flake.flakemodules=
flake.flakemodule.default =
flake.generic =...
= exModule;

I've imported the modules module, and the flakemodules module, and it still doesn't seem to put everything where I expect it in the outputs?

It just seems really... oddly confusing to try to export a generic module properly, if it's not a nixos or home-manager module.

Especially when you also want to "dogfood for testing", avoid using "imports = [];" brokenness, while also trying not to force any of your inputs on a user.

The example usage of it in the docs actually shows a nixos module instead.

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