Aaddfwef
This commit is contained in:
26
module.nix
26
module.nix
@@ -51,6 +51,18 @@ in
|
|||||||
weight = 0;
|
weight = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
appName =
|
||||||
|
(lib.mkOption {
|
||||||
|
default = "WriteFreely";
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "Name of the WriteFreely instance.";
|
||||||
|
})
|
||||||
|
// {
|
||||||
|
meta = {
|
||||||
|
type = "str";
|
||||||
|
weight = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
enableFederation =
|
enableFederation =
|
||||||
(lib.mkOption {
|
(lib.mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
@@ -60,18 +72,6 @@ in
|
|||||||
// {
|
// {
|
||||||
meta = {
|
meta = {
|
||||||
type = "bool";
|
type = "bool";
|
||||||
weight = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
title =
|
|
||||||
(lib.mkOption {
|
|
||||||
default = "WriteFreely";
|
|
||||||
type = lib.types.str;
|
|
||||||
description = "Name of the WriteFreely instance.";
|
|
||||||
})
|
|
||||||
// {
|
|
||||||
meta = {
|
|
||||||
type = "str";
|
|
||||||
weight = 2;
|
weight = 2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -99,7 +99,7 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
server.port = 8081;
|
server.port = 8081;
|
||||||
app = {
|
app = {
|
||||||
site_name = cfg.title;
|
site_name = cfg.appName;
|
||||||
single_user = false;
|
single_user = false;
|
||||||
federation = cfg.enableFederation;
|
federation = cfg.enableFederation;
|
||||||
disable_password_auth = true;
|
disable_password_auth = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user