summaryrefslogtreecommitdiff
path: root/abbenay/hydra.nix
blob: 2669aec429ec58a349353a62e6b705219e716074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, ... }:

{
  services.hydra = {
    enable = true;
    hydraURL = "http://abbenay:3000";
    buildMachinesFiles = [];
    useSubstitutes = true;
    minimumDiskFree = 10;
    notificationSender = "hydra@abbenay";
  };

  nix.settings.allowed-uris = [
    "https:"
    "ssh:"
    "path:"
    "http:"
  ];

  # required because of ancient state version defaulting to postgresql 11
  services.postgresql.package = pkgs.postgresql;

  networking.firewall.allowedTCPPorts = [ 3000 ];
}