Camelot: enable Hydra

This commit is contained in:
Victor Mignot 2023-11-14 19:18:39 +01:00
parent dc1724213f
commit f49ff489d7
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
3 changed files with 22 additions and 0 deletions

View file

@ -29,6 +29,8 @@
server.networking.enableSSH = true; server.networking.enableSSH = true;
server.builder.enableHydra = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim neovim
]; ];

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./network.nix ./network.nix
./hydra.nix
]; ];
} }

19
modules/server/hydra.nix Normal file
View 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;
};
};
}