1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

Merge pull request #1099 from offlinehacker/nixos/nginx/package_change_support

nixos/nginx: allow to specify which package to use
This commit is contained in:
Michael Raskin 2013-11-07 02:59:09 -08:00
commit f8ddc0cbd4

View file

@ -4,7 +4,7 @@ with pkgs.lib;
let
cfg = config.services.nginx;
nginx = pkgs.nginx.override { fullWebDAV = cfg.fullWebDAV; };
nginx = cfg.package;
configFile = pkgs.writeText "nginx.conf" ''
user ${cfg.user} ${cfg.group};
daemon off;
@ -22,6 +22,13 @@ in
";
};
package = mkOption {
default = pkgs.nginx;
description = "
Nginx package to use.
";
};
config = mkOption {
default = "events {}";
description = "
@ -46,10 +53,6 @@ in
description = "Group account under which nginx runs.";
};
fullWebDAV = mkOption {
default = false;
description = "Compile in a third party module providing full WebDAV support";
};
};
};