Skip to content

Instantly share code, notes, and snippets.

@o1lo01ol1o
Created October 11, 2018 16:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save o1lo01ol1o/d2c4f16d6f5284de809c66d60ff52123 to your computer and use it in GitHub Desktop.
Save o1lo01ol1o/d2c4f16d6f5284de809c66d60ff52123 to your computer and use it in GitHub Desktop.
simple-hydra with hydra-master
{ config, pkgs, lib, ...}:
{
services.hydra.package = pkgs.hydra.overrideAttrs (o: { src = (pkgs.fetchFromGitHub {
owner = "nixos";
repo = "hydra";
rev = "e0f204f3da6245fbaf5cb9ef59568b775ddcb929";
sha256 = "66002da8d68027b8a5edaf03bd81dd8b6327397311d71398776e1d3ef1ec96e1";
});
});
imports = [
/root/simple-hydra
<nixpkgs/nixos/modules/virtualisation/amazon-image.nix>
];
ec2.hvm = true;
simple-hydra.enable = true;
simple-hydra.hostName = "hydra.example.org";
simple-hydra.useNginx = false;
networking.firewall.allowedTCPPorts = [ 3000 ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment