2024-05-04 17:40:22 +02:00
|
|
|
{
|
|
|
|
description = "A Nix wrapper for Neovim+Lazy";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-11-30 17:01:28 +01:00
|
|
|
nix-unit = {
|
|
|
|
url = "github:nix-community/nix-unit";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-05-04 17:40:22 +02:00
|
|
|
};
|
|
|
|
outputs =
|
2024-05-18 11:36:22 +02:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
nix-unit,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-04 17:40:22 +02:00
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
|
|
|
lib = nixpkgs.lib;
|
2024-05-18 11:36:22 +02:00
|
|
|
unit = nix-unit.packages."${system}".nix-unit;
|
2024-05-04 17:40:22 +02:00
|
|
|
in
|
2024-05-18 11:36:22 +02:00
|
|
|
import ./default.nix {
|
|
|
|
inherit pkgs lib;
|
|
|
|
nix-unit = unit;
|
|
|
|
}
|
2024-05-05 16:20:05 +02:00
|
|
|
)
|
|
|
|
// ({
|
|
|
|
nixosModules = {
|
|
|
|
nvim-lazy = import ./modules/nvim-lazy/nixosModule.nix;
|
|
|
|
default = self.nixosModules.nvim-lazy;
|
|
|
|
};
|
|
|
|
homeManagerModules.nvim-lazy = import ./modules/nvim-lazy/homeManager.nix;
|
|
|
|
homeManagerModule = self.homeManagerModules.nvim-lazy;
|
2024-05-18 11:36:22 +02:00
|
|
|
tests = import ./tests { inherit (nixpkgs) lib; };
|
2024-05-05 16:20:05 +02:00
|
|
|
});
|
2024-05-04 17:40:22 +02:00
|
|
|
}
|