Merge pull request #207874 from kevincox/nginx-unique

nixos/nginx: Deduplicate modules.
This commit is contained in:
Kevin Cox 2023-01-03 13:07:43 -05:00 committed by GitHub
commit c930fd9517
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -571,7 +571,7 @@ in
defaultText = literalExpression "pkgs.nginxStable";
type = types.package;
apply = p: p.override {
modules = p.modules ++ cfg.additionalModules;
modules = lib.unique (p.modules ++ cfg.additionalModules);
};
description = lib.mdDoc ''
Nginx package to use. This defaults to the stable version. Note