Skip to content

question: How to use pinned lib in flake-parts modules? #318

@gabyx

Description

@gabyx

I am wondering how to override the default argument lib such that I can pin it to my nixpkgs library (e.g. input.nixpkgs.lib)

Can I do this with?

{
  inputs,
  ...
}:
{
      _module.args.lib = inputs.nixpkgs.lib;
}

and then every module will use lib with my thing?

I guess mkFlake passes the lib it locks from the input?

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