2024-11-06 22:26:21 +01:00
|
|
|
{ inputs, lib, ... }:
|
2024-10-04 23:23:30 +02:00
|
|
|
{
|
|
|
|
flake.overlays.nixvim = inputs.nixvim.overlays.default;
|
|
|
|
|
|
|
|
perSystem =
|
|
|
|
{ pkgs, system, ... }:
|
2024-10-05 22:37:58 +02:00
|
|
|
let
|
|
|
|
nixvimLib = inputs.nixvim.lib.${system};
|
|
|
|
nixvim = inputs.nixvim.legacyPackages.${system};
|
2024-11-06 22:26:21 +01:00
|
|
|
moduleDev = {
|
2024-10-04 23:23:30 +02:00
|
|
|
inherit pkgs;
|
2024-10-14 09:31:19 +02:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit (inputs) unstable;
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
module = import ../nvim/standalone.nix { standalone = true; };
|
2024-10-04 23:23:30 +02:00
|
|
|
};
|
2024-11-06 22:26:21 +01:00
|
|
|
moduleHeadless = {
|
|
|
|
inherit pkgs;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit (inputs) unstable;
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
module = {
|
|
|
|
imports = [ (import ../nvim/standalone.nix { standalone = true; }) ];
|
|
|
|
config.jhome.nvim.dev.enable = false;
|
|
|
|
};
|
|
|
|
};
|
2024-11-06 22:33:30 +01:00
|
|
|
moduleNoLsp = {
|
|
|
|
inherit pkgs;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit (inputs) unstable;
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
module = {
|
|
|
|
imports = [ (import ../nvim/standalone.nix { standalone = true; }) ];
|
|
|
|
config.jhome.nvim.dev.bundleLSPs = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
moduleNoTSGrammars = {
|
|
|
|
inherit pkgs;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit (inputs) unstable;
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
module = {
|
|
|
|
imports = [ (import ../nvim/standalone.nix { standalone = true; }) ];
|
|
|
|
config.jhome.nvim.dev.bundleGrammars = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
moduleNoBundledBins = {
|
|
|
|
inherit pkgs;
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit (inputs) unstable;
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
module = {
|
|
|
|
imports = [ (import ../nvim/standalone.nix { standalone = true; }) ];
|
|
|
|
config.jhome.nvim.dev = {
|
|
|
|
bundleLSPs = false;
|
|
|
|
bundleGrammars = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-10-05 22:37:58 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
# Check standalone nvim build
|
2024-11-06 22:33:30 +01:00
|
|
|
checks = {
|
|
|
|
nvimDev = nixvimLib.check.mkTestDerivationFromNixvimModule moduleDev;
|
|
|
|
nvimHeadless = nixvimLib.check.mkTestDerivationFromNixvimModule moduleHeadless;
|
|
|
|
nvimNoLsp = nixvimLib.check.mkTestDerivationFromNixvimModule moduleNoLsp;
|
|
|
|
nvimNoTSGrammars = nixvimLib.check.mkTestDerivationFromNixvimModule moduleNoTSGrammars;
|
|
|
|
nvimNoBundledBins = nixvimLib.check.mkTestDerivationFromNixvimModule moduleNoBundledBins;
|
|
|
|
};
|
2024-10-04 23:23:30 +02:00
|
|
|
|
|
|
|
# Nvim standalone module
|
2024-11-06 22:26:21 +01:00
|
|
|
packages.nvim = nixvim.makeNixvimWithModule moduleDev;
|
2024-10-04 23:23:30 +02:00
|
|
|
};
|
|
|
|
}
|