2019-03-05 19:41:54 +01:00
|
|
|
{
|
2019-10-29 11:04:25 +01:00
|
|
|
services.webserver = { pkgs, ... }: {
|
2019-03-06 12:49:39 +01:00
|
|
|
nixos.useSystemd = true;
|
2019-03-21 15:34:51 +01:00
|
|
|
nixos.configuration.boot.tmpOnTmpfs = true;
|
2019-03-05 19:41:54 +01:00
|
|
|
nixos.configuration.services.nginx.enable = true;
|
|
|
|
nixos.configuration.services.nginx.virtualHosts.localhost.root = "${pkgs.nix.doc}/share/doc/nix/manual";
|
|
|
|
service.useHostStore = true;
|
|
|
|
service.ports = [
|
|
|
|
"8000:80" # host:container
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|