mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-08 10:03:20 +00:00
32 lines
676 B
Nix
32 lines
676 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
|
||
|
callPackage = callPackageWith (recursiveUpdate pkgs defaultInherits);
|
||
|
in {
|
||
|
checks = packagesFromDirectoryRecursive {
|
||
|
inherit callPackage;
|
||
|
directory = ./checks;
|
||
|
};
|
||
|
|
||
|
# expose checks as packages to be built
|
||
|
packages.test = self'.checks.home-manager-test.driverInteractive;
|
||
|
};
|
||
|
}
|