2023-12-06 13:09:26 +01:00
|
|
|
{
|
2024-01-06 17:31:17 +01:00
|
|
|
inputs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: {
|
2023-12-06 13:09:26 +01:00
|
|
|
perSystem = {
|
|
|
|
pkgs,
|
2024-01-05 14:14:43 +01:00
|
|
|
config,
|
2024-01-06 17:53:31 +01:00
|
|
|
system,
|
2023-12-06 13:09:26 +01:00
|
|
|
makeNixvimWithModuleUnfree,
|
|
|
|
makeNixvimWithModule,
|
|
|
|
...
|
|
|
|
}: {
|
2024-01-06 17:53:31 +01:00
|
|
|
checks =
|
|
|
|
{
|
|
|
|
tests = import ../tests {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
makeNixvim = configuration:
|
|
|
|
makeNixvimWithModuleUnfree {
|
|
|
|
module = {
|
|
|
|
config = configuration;
|
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
};
|
2024-01-06 17:53:31 +01:00
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
|
2024-01-06 17:53:31 +01:00
|
|
|
extra-args-tests = import ../tests/extra-args.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit makeNixvimWithModule;
|
|
|
|
};
|
2024-01-06 17:31:17 +01:00
|
|
|
|
2024-01-06 17:53:31 +01:00
|
|
|
lib-tests = import ../tests/lib-tests.nix {
|
2024-01-06 17:31:17 +01:00
|
|
|
inherit pkgs;
|
2024-01-06 17:53:31 +01:00
|
|
|
inherit (pkgs) lib;
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager-module =
|
|
|
|
(import ../tests/modules/hm.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit (inputs) home-manager;
|
|
|
|
nixvim = self;
|
|
|
|
})
|
|
|
|
.activationPackage;
|
|
|
|
}
|
|
|
|
// pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
|
|
|
nixos-module =
|
|
|
|
(import ../tests/modules/nixos.nix {
|
|
|
|
inherit system;
|
|
|
|
inherit (inputs) nixpkgs;
|
|
|
|
nixvim = self;
|
|
|
|
})
|
|
|
|
.config
|
|
|
|
.system
|
|
|
|
.build
|
|
|
|
.toplevel;
|
2024-01-06 18:03:44 +01:00
|
|
|
}
|
|
|
|
// pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
|
|
|
|
darwin-module =
|
|
|
|
(import ../tests/modules/darwin.nix {
|
|
|
|
inherit system;
|
|
|
|
inherit (inputs) nix-darwin;
|
|
|
|
nixvim = self;
|
|
|
|
})
|
|
|
|
.system;
|
2024-01-06 17:53:31 +01:00
|
|
|
};
|
2023-12-06 13:09:26 +01:00
|
|
|
};
|
|
|
|
}
|