mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
This minimal implementation allows `nixpkgs.pkgs` to be defined, but does not implement evaluating an instance from a pkgsPath when _not_ defined. The `defaultPkgs` specialArg is dropped in favour of `nixpkgs.pkgs` being defined. If it's not defined, an assertion is thrown. In the future, a nixpkgs source path can be supplied, defaulting to the flake's `inputs.nixpkgs`. Along with other `nixpkgs.*` options, this will allow a `pkgs` instance to be evaluated within the module eval.
25 lines
498 B
Nix
25 lines
498 B
Nix
{ helpers, ... }:
|
|
{
|
|
perSystem =
|
|
{
|
|
pkgs,
|
|
lib,
|
|
makeNixvimWithModule,
|
|
...
|
|
}:
|
|
{
|
|
legacyPackages = rec {
|
|
inherit makeNixvimWithModule;
|
|
makeNixvim = module: makeNixvimWithModule { inherit module; };
|
|
|
|
nixvimConfiguration = helpers.modules.evalNixvim {
|
|
modules = [
|
|
{
|
|
_file = ./legacy-packages.nix;
|
|
nixpkgs.pkgs = lib.mkDefault pkgs;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|