Enable the upstream nginx module from nixpkgs.

This commit is contained in:
r-vdp 2023-04-13 12:16:19 +02:00
parent 40597a9540
commit 29c967209a
No known key found for this signature in database
4 changed files with 114 additions and 45 deletions

View file

@ -0,0 +1,15 @@
{ nixosModulesPath
, ...
}:
{
imports = [
./nginx.nix
] ++
# List of imported NixOS modules
# TODO: how will we manage this in the long term?
map (path: nixosModulesPath + path) [
"/misc/meta.nix"
"/security/acme/"
"/services/web-servers/nginx/"
];
}

View file

@ -0,0 +1,6 @@
{
systemd.services.nginx.serviceConfig.DynamicUser = true;
# Disable this for now
services.logrotate.settings.nginx = { };
}