1
0
Fork 0

remove need for intermediary file

This commit is contained in:
ibizaman 2023-11-07 20:26:34 -08:00
parent 853a79d9b2
commit 9a758fb86e
2 changed files with 11 additions and 5 deletions

View file

@ -38,9 +38,17 @@
checks = { checks = {
tests = nix-flake-tests.lib.check { tests = nix-flake-tests.lib.check {
inherit pkgs; inherit pkgs;
tests = import ./test/default.nix { tests =
inherit (pkgs) lib; let
}; importFiles = files:
map (m: import m {
inherit (pkgs) lib;
}) files;
mergeTests = pkgs.lib.lists.foldl pkgs.lib.trivial.mergeAttrs {};
in mergeTests (importFiles [
./test/modules/postgresql.nix
]);
}; };
}; };
# templates.default = {}; Would be nice to have a template # templates.default = {}; Would be nice to have a template

View file

@ -1,2 +0,0 @@
{ lib }:
import ./modules/postgresql.nix { inherit lib; }