nixos-config/modules/server/hydra.nix

25 lines
513 B
Nix

{
flake.modules.nixos.hydra =
{ ... }:
let
httpPort = 2000;
in
{
services.nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
services.hydra = {
enable = true;
hydraURL = "http://localhost:${toString httpPort}";
port = httpPort;
notificationSender = "hydra@localhost";
useSubstitutes = true;
extraConfig = ''
allow-import-from-derivation = 1
'';
};
};
}