From 6cac7e97955050545cc8e222cc5a155323d6ba46 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 6 Nov 2013 10:35:53 -0500 Subject: [PATCH] Add a unit template to run hydra-evaluator with arbitrary arguments Signed-off-by: Shea Levy --- hydra-module.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hydra-module.nix b/hydra-module.nix index 1b8d8663..ebaa0619 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -244,6 +244,16 @@ in }; }; + systemd.services."hydra-evaluator@" = + { path = [ pkgs.nettools ]; + environment = env; + serviceConfig = + { ExecStart = "@${cfg.hydra}/bin/hydra-evaluator hydra-evaluator %I"; + User = "hydra"; + Type = "oneshot"; + }; + }; + systemd.services."hydra-update-gc-roots" = { wants = [ "hydra-init.service" ]; after = [ "hydra-init.service" ];