mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
28 lines
581 B
Nix
28 lines
581 B
Nix
{ inputs, self, ... }:
|
|
{
|
|
perSystem =
|
|
{ pkgs, lib, ... }:
|
|
{
|
|
checks =
|
|
"${self}/tests"
|
|
|> builtins.readDir
|
|
|> lib.attrNames
|
|
|> lib.map (name: {
|
|
name = "${name}-test";
|
|
value = pkgs.testers.runNixOSTest (
|
|
{
|
|
name = "${name}-test";
|
|
}
|
|
// import "${self}/tests/${name}" {
|
|
inherit
|
|
inputs
|
|
self
|
|
pkgs
|
|
lib
|
|
;
|
|
}
|
|
);
|
|
})
|
|
|> lib.listToAttrs;
|
|
};
|
|
}
|