20 lines
413 B
Nix
20 lines
413 B
Nix
|
{ config, lib, ... }:
|
||
|
with lib;
|
||
|
{
|
||
|
options.server.builder.enableHydra = mkOption {
|
||
|
type = types.bool;
|
||
|
default = false;
|
||
|
example = true;
|
||
|
};
|
||
|
|
||
|
config = mkIf config.server.builder.enableHydra {
|
||
|
services.hydra = {
|
||
|
enable = true;
|
||
|
hydraURL = "http://localhost:3000";
|
||
|
notificationSender = "hydra@localhost";
|
||
|
buildMachinesFiles = [ ];
|
||
|
useSubstitutes = true;
|
||
|
};
|
||
|
};
|
||
|
}
|