Specify correct option type

This commit is contained in:
Victor Nawothnig 2019-10-04 09:57:06 +02:00
parent 2455b2e309
commit 187c0b3aef

View file

@ -181,7 +181,7 @@ in
}; };
configFile = mkOption { configFile = mkOption {
type = types.nullOr types.str; type = types.nullOr types.path;
default = null; default = null;
description = "Config file used for the whole dovecot configuration."; description = "Config file used for the whole dovecot configuration.";
apply = v: if v != null then v else pkgs.writeText "dovecot.conf" dovecotConf; apply = v: if v != null then v else pkgs.writeText "dovecot.conf" dovecotConf;