nixos/lighttpd-service: don't use types.string (it's deprecated)
This commit is contained in:
parent
0031a036ca
commit
35ebc72f1c
|
@ -102,7 +102,7 @@ in
|
||||||
|
|
||||||
document-root = mkOption {
|
document-root = mkOption {
|
||||||
default = "/srv/www";
|
default = "/srv/www";
|
||||||
type = types.str;
|
type = types.path;
|
||||||
description = ''
|
description = ''
|
||||||
Document-root of the web server. Must be readable by the "lighttpd" user.
|
Document-root of the web server. Must be readable by the "lighttpd" user.
|
||||||
'';
|
'';
|
||||||
|
@ -128,7 +128,7 @@ in
|
||||||
|
|
||||||
configText = mkOption {
|
configText = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.string;
|
type = types.lines;
|
||||||
example = ''...verbatim config file contents...'';
|
example = ''...verbatim config file contents...'';
|
||||||
description = ''
|
description = ''
|
||||||
Overridable config file contents to use for lighttpd. By default, use
|
Overridable config file contents to use for lighttpd. By default, use
|
||||||
|
@ -138,7 +138,7 @@ in
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.string;
|
type = types.lines;
|
||||||
description = ''
|
description = ''
|
||||||
These configuration lines will be appended to the generated lighttpd
|
These configuration lines will be appended to the generated lighttpd
|
||||||
config file. Note that this mechanism does not work when the manual
|
config file. Note that this mechanism does not work when the manual
|
||||||
|
|
Loading…
Reference in New Issue