Author: ludo
Date: Thu May 5 10:07:59 2011
New Revision: 27160
URL: https://svn.nixos.org/websvn/nix/?rev=27160&sc=1
Log:
hydra-module: Add a `logo' option.
Modified:
hydra/trunk/hydra-module.nix
Modified: hydra/trunk/hydra-module.nix
==============================================================================
--- hydra/trunk/hydra-module.nix Thu May 5 10:07:56 2011 (r27159)
+++ hydra/trunk/hydra-module.nix Thu May 5 10:07:59 2011 (r27160)
@@ -18,6 +18,9 @@
+ ''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 @@
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 @@
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 = ''
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits