From d4664fd7598f487bfdd7c3cb86bca6fc04637a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 5 May 2011 10:07:59 +0000 Subject: [PATCH] hydra-module: Add a `logo' option. --- hydra-module.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/hydra-module.nix b/hydra-module.nix index 6f51470a..8884a709 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -18,6 +18,9 @@ let + ''HYDRA_CONFIG=${cfg.baseDir}/data/hydra.conf '' + ''HYDRA_DATA=${cfg.baseDir}/data '' + ''HYDRA_PORT="${toString cfg.port}" '' + + ${if cfg.logo != null + then ''HYDRA_LOGO="${cfg.logo}" '' + else ""} + ''HYDRA_TRACKER="${cfg.tracker}" ;''; in @@ -50,8 +53,9 @@ in dbi = mkOption { default = "dbi:Pg:dbname=hydra;host=localhost;user=root;"; + example = "dbi:SQLite:/home/hydra/db/hydra.sqlite"; description = '' - The DBI string for Hydra database connection + The DBI string for Hydra database connection. ''; }; @@ -102,8 +106,15 @@ in description = '' Piece of HTML that is included on all pages. ''; - }; - + }; + + logo = mkOption { + default = null; + description = '' + File name of an alternate logo to be displayed on the web pages. + ''; + }; + autoStart = mkOption { default = true; description = ''