Compare commits

..

4 Commits

View File

@@ -5,8 +5,23 @@ let
cfg = config.r6d.config-generator;
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in
#### https://github.com/NixOS/hydra/issues/413
# Note that we use 'import <nixpkgs> {}' instead of 'pkgs'.
# If we use the latter we get an infinite recursion
# because we include hydra-src in the module imports below which in turn defines the 'pkgs' value.
hydra-src = (import <nixpkgs> {}).fetchgit {
url = "https://github.com/NixOS/hydra.git";
rev = "de55303197d997c4fc5503b52b1321ae9528583d";
sha256 = "0nimqsbpjxfwha6d5gp6a7jh50i83z1llmx30da4bscsic8z1xly";
};
hydra-src-pkg = lib.mkDefault ((import (hydra-src + /release.nix) {}).build.x86_64-linux);
# information pour l'état de hydra :
# hydra-queue-runner --status | json_pp
in
mkIf cfg.hydra-core {
# Paquets
@@ -43,6 +58,11 @@ mkIf cfg.hydra-core {
listenHost = "localhost";
minimumDiskFree = 50; # Go
smtpHost = "localhost";
package = hydra-src-pkg ;
};
systemd.services.hydra-evaluator = {
path = [ pkgs.nettools config.services.hydra.package ];
};
## Ménage