flake/legacyPackages: simplify makeNixvim, making it more powerful

Rather than nesting it as `config`, pass `makeNixvim`'s argument through
directly as a module.

This not only simplifies the implementation, but allows users to use
`makeNixvim` for any scenario where `makeNixvimWithModule` would normally
be required.
This commit is contained in:
Matt Sturgeon 2024-06-29 22:15:39 +01:00
parent 10f64e6c96
commit c062b976ef
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 4 additions and 9 deletions

View file

@ -9,13 +9,7 @@
{
legacyPackages = rec {
inherit makeNixvimWithModule;
makeNixvim =
configuration:
makeNixvimWithModule {
module = {
config = configuration;
};
};
makeNixvim = module: makeNixvimWithModule { inherit module; };
};
};
}