mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
Let's simplify things by defining all modules in `./plugins`, `./modules` and `./wrappers/modules`. Instead of currying `pkgs` into a bootstrapping module, we can require `defaultPkgs` be provided as a special arg. This refactor allows us to completely remove `flake-modules/modules.nix`!
13 lines
299 B
Nix
13 lines
299 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 = [
|
|
./nixpkgs.nix
|
|
./nixvim-info.nix
|
|
(nixosModules + "/misc/meta.nix")
|
|
];
|
|
}
|