neo2005/flake.nix

52 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-01-16 19:47:30 +01:00
{
2024-12-10 07:38:15 +01:00
description = "neo2005 flake";
# Flake reused directly from https://github.com/Ahwxorg/nixvim-config/
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim.url = "github:nix-community/nixvim";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
2025-01-16 19:47:30 +01:00
{
nixvim,
flake-parts,
...
}@inputs:
2024-12-10 07:38:15 +01:00
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem =
2025-01-16 19:47:30 +01:00
{
pkgs,
system,
...
2024-12-10 07:38:15 +01:00
}:
let
nixvimLib = nixvim.lib.${system};
nixvim' = nixvim.legacyPackages.${system};
nixvimModule = {
inherit pkgs;
module = import ./config;
extraSpecialArgs = { };
};
nvim = nixvim'.makeNixvimWithModule nixvimModule;
in
{
checks = {
default = nixvimLib.check.mkTestDerivationFromNixvimModule nixvimModule;
};
packages = {
default = nvim;
};
};
};
}