This commit is contained in:
2025-11-07 17:21:15 +03:00
parent 7de519b118
commit dc75ef6600

View File

@@ -51,6 +51,18 @@ in
weight = 0;
};
};
appName =
(lib.mkOption {
default = "WriteFreely";
type = lib.types.str;
description = "Name of the WriteFreely instance.";
})
// {
meta = {
type = "str";
weight = 1;
};
};
enableFederation =
(lib.mkOption {
default = false;
@@ -60,18 +72,6 @@ in
// {
meta = {
type = "bool";
weight = 1;
};
};
title =
(lib.mkOption {
default = "WriteFreely";
type = lib.types.str;
description = "Name of the WriteFreely instance.";
})
// {
meta = {
type = "str";
weight = 2;
};
};
@@ -99,7 +99,7 @@ in
settings = {
server.port = 8081;
app = {
site_name = cfg.title;
site_name = cfg.appName;
single_user = false;
federation = cfg.enableFederation;
disable_password_auth = true;