mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
26 lines
539 B
Nix
26 lines
539 B
Nix
{ inputs, self, ... }:
|
|
{
|
|
perSystem =
|
|
{ pkgs, lib, ... }:
|
|
let
|
|
mkTest = dir: rec {
|
|
name = "${dir}-test";
|
|
value = pkgs.testers.runNixOSTest (
|
|
{
|
|
inherit name;
|
|
}
|
|
// import "${self}/tests/${dir}" {
|
|
inherit
|
|
inputs
|
|
self
|
|
pkgs
|
|
lib
|
|
;
|
|
}
|
|
);
|
|
};
|
|
in
|
|
{
|
|
checks = "${self}/tests" |> builtins.readDir |> lib.attrNames |> lib.map mkTest |> lib.listToAttrs;
|
|
};
|
|
}
|