remove need for intermediary file
This commit is contained in:
parent
853a79d9b2
commit
9a758fb86e
2 changed files with 11 additions and 5 deletions
12
flake.nix
12
flake.nix
|
@ -38,9 +38,17 @@
|
|||
checks = {
|
||||
tests = nix-flake-tests.lib.check {
|
||||
inherit pkgs;
|
||||
tests = import ./test/default.nix {
|
||||
tests =
|
||||
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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
{ lib }:
|
||||
import ./modules/postgresql.nix { inherit lib; }
|
Loading…
Reference in a new issue