{ lib, ... }: { name = "pgadmin4"; meta.maintainers = with lib.maintainers; [ mkg20001 gador ]; nodes = { machine = { pkgs, ... }: { imports = [ ./common/user-account.nix ]; environment.systemPackages = with pkgs; [ wget curl pgadmin4-desktopmode ]; services.postgresql = { enable = true; authentication = '' host all all localhost trust ''; }; services.pgadmin = { port = 5051; enable = true; initialEmail = "bruh@localhost.de"; initialPasswordFile = pkgs.writeText "pw" "bruh2012!"; }; }; machine2 = { pkgs, ... }: { imports = [ ./common/user-account.nix ]; services.postgresql = { enable = true; }; services.pgadmin = { enable = true; initialEmail = "bruh@localhost.de"; initialPasswordFile = pkgs.writeText "pw" "bruh2012!"; minimumPasswordLength = 12; }; }; }; testScript = '' with subtest("Check pgadmin module"): machine.wait_for_unit("postgresql") machine.wait_for_unit("pgadmin") machine.wait_until_succeeds("curl -sS localhost:5051") machine.wait_until_succeeds("curl -sS localhost:5051/login | grep \"