Remove Hydra
This commit is contained in:
parent
81ddbfa7df
commit
cbbba40a01
|
@ -35,8 +35,6 @@
|
|||
|
||||
services.nginx.enable = true;
|
||||
|
||||
server.builder.enableHydra = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
git
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./network.nix
|
||||
./hydra.nix
|
||||
./nginx.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
{ config, lib, extraInfo, ... }:
|
||||
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;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${extraInfo.hydraURI} = mkIf config.services.nginx.enable {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = config.services.hydra.hydraURL;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue