Author: eelco
Date: Mon Apr 30 18:39:08 2012
New Revision: 33961
URL: https://nixos.org/websvn/nix/?rev=33961&sc=1

Log:
* Show a NixOS logo in hydra.nixos.org's navbar.  Thanks
  to Ludo for creating the white-on-black version!

Added:
   configurations/trunk/tud/hydra-logo.png   (contents, props changed)
Modified:
   configurations/trunk/tud/hydra-module.nix
   configurations/trunk/tud/lucifer.nix

Added: configurations/trunk/tud/hydra-logo.png
==============================================================================
Binary file. No diff available.

Modified: configurations/trunk/tud/hydra-module.nix
==============================================================================
--- configurations/trunk/tud/hydra-module.nix   Mon Apr 30 18:38:05 2012        
(r33960)
+++ configurations/trunk/tud/hydra-module.nix   Mon Apr 30 18:39:08 2012        
(r33961)
@@ -14,7 +14,7 @@
     '';
     
   env = ''NIX_REMOTE=daemon HYDRA_DBI="${cfg.dbi}" 
HYDRA_CONFIG=${cfg.baseDir}/data/hydra.conf HYDRA_DATA=${cfg.baseDir}/data '';
-  server_env = env + ''HYDRA_TRACKER="${cfg.tracker}" '';
+  server_env = env + ''HYDRA_LOGO="${cfg.logo}" HYDRA_TRACKER="${cfg.tracker}" 
'';
 
 in
 
@@ -87,6 +87,13 @@
         '';
       }; 
       
+      logo = mkOption {
+        default = "";
+        description = ''
+          Path to a file containing the logo of your Hydra instance.
+        '';
+      }; 
+      
     };
 
   };

Modified: configurations/trunk/tud/lucifer.nix
==============================================================================
--- configurations/trunk/tud/lucifer.nix        Mon Apr 30 18:38:05 2012        
(r33960)
+++ configurations/trunk/tud/lucifer.nix        Mon Apr 30 18:39:08 2012        
(r33961)
@@ -15,6 +15,7 @@
   boot.kernelModules = [ "acpi-cpufreq" "kvm-intel" ];
 
   services.hydra.enable = true;
+  services.hydra.logo = ./hydra-logo.png;
   services.hydra.tracker = ''
     <!-- Start of StatCounter Code -->
     <script type=\"text/javascript\">
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to