krebs.nginx: default locations = []

This commit is contained in:
tv 2016-02-13 16:07:01 +01:00
parent 411aec6bf9
commit d38853027e

View File

@ -34,6 +34,7 @@ let
}; };
locations = mkOption { locations = mkOption {
type = with types; listOf (attrsOf str); type = with types; listOf (attrsOf str);
default = [];
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = with types; string; type = with types; string;
@ -76,8 +77,8 @@ let
server { server {
${concatMapStringsSep "\n" (x: "listen ${x};") listen} ${concatMapStringsSep "\n" (x: "listen ${x};") listen}
server_name ${toString server-names}; server_name ${toString server-names};
${extraConfig} ${indent extraConfig}
${indent (concatStrings (map to-location locations))} ${indent (concatMapStrings to-location locations)}
} }
''; '';