services.hydra -> services.hydra-dev

Since Nixpkgs 16.09 contains a Hydra module, we were getting a
conflict. I guess we should have a way to override modules in
Nixpkgs...
This commit is contained in:
Eelco Dolstra 2016-10-10 11:29:15 +02:00
parent 2f0d2f8d91
commit 633724cc8a
2 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@ with lib;
let let
cfg = config.services.hydra; cfg = config.services.hydra-dev;
baseDir = "/var/lib/hydra"; baseDir = "/var/lib/hydra";
@ -42,7 +42,7 @@ in
###### interface ###### interface
options = { options = {
services.hydra = rec { services.hydra-dev = rec {
enable = mkOption { enable = mkOption {
type = types.bool; type = types.bool;
@ -217,9 +217,9 @@ in
nix.trustedUsers = [ "hydra-queue-runner" ]; nix.trustedUsers = [ "hydra-queue-runner" ];
services.hydra.package = mkDefault ((import ./release.nix {}).build.x86_64-linux); services.hydra-dev.package = mkDefault ((import ./release.nix {}).build.x86_64-linux);
services.hydra.extraConfig = services.hydra-dev.extraConfig =
'' ''
using_frontend_proxy 1 using_frontend_proxy 1
base_uri ${cfg.hydraURL} base_uri ${cfg.hydraURL}

View file

@ -18,10 +18,10 @@ let
virtualisation.memorySize = 1024; virtualisation.memorySize = 1024;
virtualisation.writableStore = true; virtualisation.writableStore = true;
services.hydra.enable = true; services.hydra-dev.enable = true;
services.hydra.package = hydraPkg; services.hydra-dev.package = hydraPkg;
services.hydra.hydraURL = "http://hydra.example.org"; services.hydra-dev.hydraURL = "http://hydra.example.org";
services.hydra.notificationSender = "admin@hydra.example.org"; services.hydra-dev.notificationSender = "admin@hydra.example.org";
services.postgresql.enable = true; services.postgresql.enable = true;
services.postgresql.package = pkgs.postgresql92; services.postgresql.package = pkgs.postgresql92;