2019-03-05 19:41:54 +01:00
|
|
|
{
|
2022-05-31 23:53:03 +02:00
|
|
|
project.name = "full-nixos";
|
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;
|
2023-07-08 18:45:35 +02:00
|
|
|
nixos.configuration.networking.useDHCP = false;
|
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";
|
2021-05-31 15:15:03 +02:00
|
|
|
nixos.configuration.services.nscd.enable = false;
|
|
|
|
nixos.configuration.system.nssModules = lib.mkForce [];
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|