2024-05-06 15:13:38 +02:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
perSystem = {
|
|
|
|
pkgs,
|
|
|
|
self',
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.filesystem) packagesFromDirectoryRecursive;
|
|
|
|
inherit (lib.customisation) callPackageWith;
|
|
|
|
inherit (lib.attrsets) recursiveUpdate;
|
|
|
|
|
|
|
|
defaultInherits = {
|
|
|
|
inherit (config.flake) homeManagerModules nixosModules;
|
|
|
|
inherit inputs;
|
2024-05-06 22:23:52 +02:00
|
|
|
testProfile = ./profiles/minimal.nix;
|
2024-05-06 15:13:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
callPackage = callPackageWith (recursiveUpdate pkgs defaultInherits);
|
|
|
|
in {
|
|
|
|
checks = packagesFromDirectoryRecursive {
|
|
|
|
inherit callPackage;
|
|
|
|
directory = ./checks;
|
|
|
|
};
|
|
|
|
|
|
|
|
# expose checks as packages to be built
|
2024-05-06 15:43:05 +02:00
|
|
|
packages = {
|
|
|
|
test-home-manager-module = self'.checks.homeManagerModule.driverInteractive;
|
2024-05-08 23:54:29 +02:00
|
|
|
test-nixos-module = self'.checks.nixosModule.driverInteractive;
|
2024-05-06 15:43:05 +02:00
|
|
|
};
|
2024-05-06 15:13:38 +02:00
|
|
|
};
|
|
|
|
}
|