Author: eelco
Date: Mon Dec 6 09:54:28 2010
New Revision: 24989
URL: https://svn.nixos.org/websvn/nix/?rev=24989&sc=1
Log:
Modified:
configurations/trunk/tud/mrhankey.nix
Modified: configurations/trunk/tud/mrhankey.nix
==============================================================================
--- configurations/trunk/tud/mrhankey.nix Mon Dec 6 09:54:08 2010
(r24988)
+++ configurations/trunk/tud/mrhankey.nix Mon Dec 6 09:54:28 2010
(r24989)
@@ -1,5 +1,7 @@
{ config, pkgs, ... }:
+with pkgs.lib;
+
{
require = [ ./common.nix ];
@@ -21,4 +23,19 @@
networking.hostName = "";
services.openssh.enable = true;
+
+ environment.etc =
+ flip map (range 0 9) (nr:
+ { source = pkgs.writeText "agilecloud0${toString nr}"
+ ''
+ from xen.util.path import *
+ memory = 512
+ kernel = XENFIRMWAREDIR + '/pv-grub-x86_32.gz'
+ extra = '(hd0)/boot/grub/menu.lst'
+ disk = [ 'file:/vmdisks/agilecloud-0${toString
nr}-root.img,xvda1,w' ]
+ vif = [ 'mac=00:16:3e:00:34:0${toString nr}' ]
+ '';
+ target = "xen/agilecloud0${toString nr}";
+ }
+ );
}
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits