summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-13 16:07:01 +0100
committertv <tv@krebsco.de>2016-02-13 16:07:01 +0100
commitd38853027efe650e6de4b335014cd238624cd993 (patch)
tree6940879df88b0237fcf3918be567e9c163d27c44 /krebs/3modules
parent411aec6bf9d1b53813e693f22b77972a00ce9078 (diff)
krebs.nginx: default locations = []
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/nginx.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/krebs/3modules/nginx.nix b/krebs/3modules/nginx.nix
index 921771033..5bc0903e4 100644
--- a/krebs/3modules/nginx.nix
+++ b/krebs/3modules/nginx.nix
@@ -34,6 +34,7 @@ let
};
locations = mkOption {
type = with types; listOf (attrsOf str);
+ default = [];
};
extraConfig = mkOption {
type = with types; string;
@@ -76,8 +77,8 @@ let
server {
${concatMapStringsSep "\n" (x: "listen ${x};") listen}
server_name ${toString server-names};
- ${extraConfig}
- ${indent (concatStrings (map to-location locations))}
+ ${indent extraConfig}
+ ${indent (concatMapStrings to-location locations)}
}
'';