import ( { pkgs, ... }: { machine = { pkgs, config, lib, ... }: { virtualisation.memorySize = 1024; services.gitlab.enable = true; services.gitlab.databasePassword = "password"; services.gitlab.secrets = { db = "password1"; otp = "password2"; secret = "password3"; }; systemd.services.gitlab.serviceConfig.TimeoutStartSec = "60min"; }; testScript = '' $machine->start(); $machine->waitUntilSucceeds("sleep 600"); $machine->waitUntilSucceeds("sleep 600"); $machine->waitUntilSucceeds("sleep 600"); $machine->waitUntilSucceeds("sleep 600"); $machine->waitUntilSucceeds("sleep 600"); $machine->waitForUnit("gitlab.service"); $machine->waitForUnit("gitlab-sidekiq.service"); $machine->waitUntilSucceeds("curl http://localhost:8080/users/sign_in"); ''; })