mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
34 lines
807 B
Nix
34 lines
807 B
Nix
|
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;
|
||
|
|
||
|
}
|