enable=lib.mkEnableOption"artalk, a comment system";
configFile=lib.mkOption{
type=lib.types.str;
default="/etc/artalk/config.yml";
description="Artalk config file path. If it is not exist, Artalk will generate one.";
};
allowModify=lib.mkOption{
type=lib.types.bool;
default=true;
description="allow Artalk store the settings to config file persistently";
};
workdir=lib.mkOption{
type=lib.types.str;
default="/var/lib/artalk";
description="Artalk working directory";
};
user=lib.mkOption{
type=lib.types.str;
default="artalk";
description="Artalk user name.";
};
group=lib.mkOption{
type=lib.types.str;
default="artalk";
description="Artalk group name.";
};
package=lib.mkPackageOptionpkgs"artalk"{};
settings=lib.mkOption{
type=lib.types.submodule{
freeformType=settingsFormat.type;
options={
host=lib.mkOption{
type=lib.types.str;
default="0.0.0.0";
description=''
Artalk server listen host
'';
};
port=lib.mkOption{
type=lib.types.port;
default=23366;
description=''
Artalk server listen port
'';
};
};
};
default={};
description=''
The artalk configuration.
If you set allowModify to true, Artalk will be able to store the settings in the config file persistently. This section's content will update in the config file after the service restarts.
Options containing secret data should be set to an attribute set
containing the attribute `_secret` - a string pointing to a file