2019-03-05 19:41:54 +01:00
|
|
|
{
|
2020-03-02 11:13:47 +01:00
|
|
|
services.webserver = { pkgs, lib, ... }: {
|
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";
|
2020-03-02 11:13:47 +01:00
|
|
|
nixos.configuration.systemd.services.nginx.serviceConfig.AmbientCapabilities =
|
|
|
|
lib.mkForce [ "CAP_NET_BIND_SERVICE" ];
|
2019-03-05 19:41:54 +01:00
|
|
|
service.useHostStore = true;
|
|
|
|
service.ports = [
|
|
|
|
"8000:80" # host:container
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|