2024-08-16 15:23:55 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
sops.secrets."writefreely".mode = "0440";
|
|
|
|
sops.secrets."writefreely".owner = config.users.users.writefreely.name;
|
2024-08-16 15:35:18 +02:00
|
|
|
sops.secrets."writefreelymysql".mode = "0440";
|
|
|
|
sops.secrets."writefreelymysql".owner = config.users.users.writefreely.name;
|
2024-08-16 15:23:55 +02:00
|
|
|
services.writefreely = {
|
|
|
|
enable = true;
|
2024-08-17 14:41:09 +02:00
|
|
|
host = "writefreely.gladtherescake.eu";
|
2024-08-16 15:23:55 +02:00
|
|
|
nginx.enable = true;
|
|
|
|
nginx.forceSSL = true;
|
|
|
|
acme.enable = true;
|
2024-08-17 14:51:47 +02:00
|
|
|
# database = {
|
|
|
|
# type = "mysql";
|
|
|
|
# createLocally = true;
|
|
|
|
# passwordFile = config.sops.secrets."writefreelymysql".path;
|
|
|
|
# };
|
2024-08-16 15:23:55 +02:00
|
|
|
admin = {
|
|
|
|
initialPasswordFile = config.sops.secrets."writefreely".path;
|
|
|
|
name = "GLaDTheresCake";
|
|
|
|
};
|
|
|
|
settings = {
|
2024-08-16 20:01:55 +02:00
|
|
|
app = {
|
|
|
|
min_username_len = 2;
|
|
|
|
max_blogs = 100;
|
|
|
|
default_visibility = "public";
|
|
|
|
federation = true;
|
2024-08-17 13:17:58 +02:00
|
|
|
local_timeline = true;
|
2024-08-16 20:01:55 +02:00
|
|
|
};
|
2024-08-17 14:44:46 +02:00
|
|
|
server.port = 1212;
|
2024-08-16 15:23:55 +02:00
|
|
|
};
|
|
|
|
};
|
2024-08-17 15:08:57 +02:00
|
|
|
systemd.services.writefreely = {
|
2024-08-17 15:09:29 +02:00
|
|
|
path = [pkgs.openssl];
|
2024-08-17 15:08:57 +02:00
|
|
|
};
|
2024-08-16 15:23:55 +02:00
|
|
|
}
|