Camelot: enable Hydra
This commit is contained in:
parent
dc1724213f
commit
f49ff489d7
|
@ -29,6 +29,8 @@
|
|||
|
||||
server.networking.enableSSH = true;
|
||||
|
||||
server.builder.enableHydra = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
];
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./network.nix
|
||||
./hydra.nix
|
||||
];
|
||||
}
|
||||
|
|
19
modules/server/hydra.nix
Normal file
19
modules/server/hydra.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue