8f0549b434
resolves warning:
trace: Obsolete option `boot.tmpOnTmpfs' is used. It was renamed to
`boot.tmp.useTmpfs'.
c.f.
a5d95ac5fc
18 lines
718 B
Nix
18 lines
718 B
Nix
{
|
|
project.name = "full-nixos";
|
|
services.webserver = { pkgs, lib, ... }: {
|
|
nixos.useSystemd = true;
|
|
nixos.configuration.boot.tmp.useTmpfs = true;
|
|
nixos.configuration.networking.useDHCP = false;
|
|
nixos.configuration.services.nginx.enable = true;
|
|
nixos.configuration.services.nginx.virtualHosts.localhost.root = "${pkgs.nix.doc}/share/doc/nix/manual";
|
|
nixos.configuration.services.nscd.enable = false;
|
|
nixos.configuration.system.nssModules = lib.mkForce [];
|
|
nixos.configuration.systemd.services.nginx.serviceConfig.AmbientCapabilities =
|
|
lib.mkForce [ "CAP_NET_BIND_SERVICE" ];
|
|
service.useHostStore = true;
|
|
service.ports = [
|
|
"8000:80" # host:container
|
|
];
|
|
};
|
|
}
|