Enable the upstream nginx module from nixpkgs.
This commit is contained in:
parent
40597a9540
commit
29c967209a
4 changed files with 114 additions and 45 deletions
15
nix/modules/upstream/nixpkgs/default.nix
Normal file
15
nix/modules/upstream/nixpkgs/default.nix
Normal 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/"
|
||||
];
|
||||
}
|
||||
6
nix/modules/upstream/nixpkgs/nginx.nix
Normal file
6
nix/modules/upstream/nixpkgs/nginx.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
systemd.services.nginx.serviceConfig.DynamicUser = true;
|
||||
|
||||
# Disable this for now
|
||||
services.logrotate.settings.nginx = { };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue