Aaddfwef
This commit is contained in:
26
module.nix
26
module.nix
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user