Factor out NixOS tests, and clean up

Due to newer nixpkgs, there were a number of things that could be
cleaned up in the process.
This commit is contained in:
John Ericson
2024-05-03 12:07:05 -04:00
parent 50378aef22
commit 743795b2b0
3 changed files with 319 additions and 300 deletions

View File

@ -1,14 +1,13 @@
{ overlays }:
rec {
hydra = {
imports = [ ./hydra.nix ];
{
hydra = import ./hydra.nix;
overlayNixpkgsForThisHyydra = {
nixpkgs = { inherit overlays; };
};
hydraTest = { pkgs, ... }: {
imports = [ hydra ];
services.hydra-dev.enable = true;
services.hydra-dev.hydraURL = "http://hydra.example.org";
services.hydra-dev.notificationSender = "admin@hydra.example.org";
@ -16,7 +15,7 @@ rec {
systemd.services.hydra-send-stats.enable = false;
services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql_11;
services.postgresql.package = pkgs.postgresql_12;
# The following is to work around the following error from hydra-server:
# [error] Caught exception in engine "Cannot determine local time zone"