* Add an option virtualisation.nova.extraConfig.

svn path=/nixos/trunk/; revision=27504
This commit is contained in:
Eelco Dolstra 2011-06-20 14:27:06 +00:00
parent 545431003b
commit 3cb5ea79bd

View File

@ -14,6 +14,7 @@ let
'' ''
--nodaemon --nodaemon
--verbose --verbose
${cfg.extraConfig}
''; '';
in in
@ -40,6 +41,16 @@ in
''; '';
}; };
virtualisation.nova.extraConfig =
mkOption {
default = false;
description =
''
Additional text appended to <filename>nova.conf</filename>,
the main Nova configuration file.
'';
};
}; };
@ -50,9 +61,8 @@ in
environment.systemPackages = [ nova pkgs.euca2ools pkgs.novaclient ]; environment.systemPackages = [ nova pkgs.euca2ools pkgs.novaclient ];
environment.etc = environment.etc =
[ # The Paste configuration file for nova-api. [ { source = novaConf;
{ source = "${nova}/etc/nova/nova-api.conf"; target = "nova/nova.conf";
target = "nova/nova-api.conf";
} }
]; ];