1
0
Fork 0
selfhostblocks/test/vm/postgresql.nix
2023-11-21 23:33:21 -08:00

19 lines
325 B
Nix

{ pkgs, lib, ... }:
let
in pkgs.nixosTest {
name = "postgresql";
nodes.machine = { config, pkgs, ... }: {
imports = [
../../modules/blocks/postgresql.nix
];
services.postgresql.enable = true;
};
testScript = { nodes, ... }: ''
start_all()
machine.wait_for_unit("postgresql.service")
'';
}