* Configuration used to generate an Amazon image. This doesn't belong
in `tests' but I don't have a better place right now. svn path=/nixos/trunk/; revision=19583
This commit is contained in:
parent
590acc193c
commit
dc137c54eb
33
tests/amazon.nix
Normal file
33
tests/amazon.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
rec {
|
||||||
|
|
||||||
|
machine =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.httpd.enable = true;
|
||||||
|
services.httpd.adminAddr = "e.dolstra@tudelft.nl";
|
||||||
|
services.httpd.documentRoot = "${pkgs.valgrind}/share/doc/valgrind/html";
|
||||||
|
|
||||||
|
nixpkgs.config.packageOverrides = pkgsOld:
|
||||||
|
{ dhcp = pkgs.lib.overrideDerivation pkgsOld.dhcp (oldAttrs:
|
||||||
|
{ configureFlags = "--disable-dhcpv6";
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = [ ];
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/sda2"; } ];
|
||||||
|
|
||||||
|
services.sshd.enable = true;
|
||||||
|
services.sshd.permitRootLogin = "without-password";
|
||||||
|
|
||||||
|
services.mingetty.ttys = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
|
config = (import ./lib/eval-config.nix {
|
||||||
|
system = "i686-linux";
|
||||||
|
modules = [ machine ./modules/virtualisation/amazon-image.nix ];
|
||||||
|
}).config;
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user