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`!
25 lines
407 B
Nix
25 lines
407 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [
|
|
./dev
|
|
./helpers.nix
|
|
./lib.nix
|
|
./legacy-packages.nix
|
|
./overlays.nix
|
|
./packages.nix
|
|
./templates.nix
|
|
./tests.nix
|
|
./wrappers.nix
|
|
];
|
|
|
|
perSystem =
|
|
{ pkgs, system, ... }:
|
|
{
|
|
_module.args = {
|
|
pkgsUnfree = import inputs.nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
};
|
|
};
|
|
}
|