NixOS-Config/nixos/server/package-configs/writefreely/default.nix

40 lines
1,012 B
Nix
Raw Normal View History

{
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;
services.writefreely = {
enable = true;
2024-08-17 14:41:09 +02:00
host = "writefreely.gladtherescake.eu";
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;
# };
admin = {
initialPasswordFile = config.sops.secrets."writefreely".path;
name = "GLaDTheresCake";
};
settings = {
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-17 14:44:46 +02:00
server.port = 1212;
};
};
systemd.services.writefreely = {
2024-08-17 15:09:29 +02:00
path = [pkgs.openssl];
};
}