mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58:43 +02:00
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.
15 lines
255 B
Nix
15 lines
255 B
Nix
{
|
|
perSystem =
|
|
{
|
|
pkgs,
|
|
config,
|
|
makeNixvimWithModule,
|
|
...
|
|
}:
|
|
{
|
|
legacyPackages = rec {
|
|
inherit makeNixvimWithModule;
|
|
makeNixvim = module: makeNixvimWithModule { inherit module; };
|
|
};
|
|
};
|
|
}
|