mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
Replaced the `isDocs` specialArg added in #1807 with an internal module option. We should only use `specialArgs` when absolutely necessary, a module or `_module.args` is preferred, but those aren't available until `config` is evaluated so they can't be used for `imports`. The main problem with `specialArgs` is it makes our modules less portable. Luckily that shouldn't be an issue for these context flags.
15 lines
361 B
Nix
15 lines
361 B
Nix
{ defaultPkgs, ... }:
|
|
let
|
|
# We can't use config._module.args to define imports,
|
|
# so we're forced to use specialArgs.defaultPkgs's path
|
|
nixosModules = defaultPkgs.path + "/nixos/modules/";
|
|
in
|
|
{
|
|
imports = [
|
|
./context.nix
|
|
./nixpkgs.nix
|
|
./nixvim-info.nix
|
|
(nixosModules + "/misc/assertions.nix")
|
|
(nixosModules + "/misc/meta.nix")
|
|
];
|
|
}
|