Skip to content
Discussion options

You must be logged in to vote

I think just take wlib as a parameter in the module. Now that I look at it, if you do that you should probably also have config there (but if I understand how modules work correctly it should be fine either way). Something like

wrappers.neovim =
  { config, pkgs, wlib ... }:
  {
    specMods = {
      options.extraPackages = lib.mkOption {
        type = lib.types.listOf wlib.types.stringable;
        default = [ ];
        description = "a extraPackages spec field to put packages to suffix to the PATH";
      };
    };
    extraPackages = config.specCollect (acc: v: acc ++ (v.extraPackages or [ ])) [ ];

    # ...
  };

Replies: 6 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@BirdeeHub
Comment options

@nikoof
Comment options

@BirdeeHub
Comment options

@nikoof
Comment options

@BirdeeHub
Comment options

Comment options

You must be logged in to vote
5 replies
@mettavi
Comment options

@nikoof
Comment options

@mettavi
Comment options

@nikoof
Comment options

Answer selected by mettavi
@mettavi
Comment options

Comment options

You must be logged in to vote
2 replies
@nikoof
Comment options

@mettavi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #505 on May 05, 2026 15:45.