phpfpm module: Make extraConfig and poolConfigs mergeable by switching option type to types.lines

This commit is contained in:
Rickard Nilsson 2014-03-12 11:45:31 +01:00
parent 562a8ca4a2
commit 4e23573138

View File

@ -24,7 +24,7 @@ in {
options = { options = {
services.phpfpm = { services.phpfpm = {
extraConfig = mkOption { extraConfig = mkOption {
type = types.str; type = types.lines;
default = ""; default = "";
description = '' description = ''
Extra configuration that should be put in the global section of Extra configuration that should be put in the global section of
@ -36,7 +36,7 @@ in {
}; };
poolConfigs = mkOption { poolConfigs = mkOption {
type = types.attrsOf types.str; type = types.attrsOf types.lines;
default = {}; default = {};
example = { example = {
mypool = '' mypool = ''