2024-07-15 13:45:58 +02:00
|
|
|
{ config, pkgs, iceshrimp, ... }:
|
2024-07-15 11:49:02 +02:00
|
|
|
{
|
2024-07-15 13:45:58 +02:00
|
|
|
|
|
|
|
|
services = {
|
2024-07-16 21:19:15 +02:00
|
|
|
postgresql = {
|
|
|
|
|
enable = true;
|
|
|
|
|
initialScript = pkgs.writeText "synapse-init.sql" ''
|
2024-07-17 00:53:11 +02:00
|
|
|
CREATE ROLE "iceshrimp" WITH LOGIN PASSWORD 'uph2reeloo3aeDae4muc';
|
|
|
|
|
CREATE DATABASE "iceshrimp" WITH OWNER "iceshrimp"
|
2024-07-16 21:19:15 +02:00
|
|
|
TEMPLATE template0
|
|
|
|
|
LC_COLLATE = "C"
|
|
|
|
|
LC_CTYPE = "C";
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
2024-07-15 13:45:58 +02:00
|
|
|
|
|
|
|
|
iceshrimp = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
2024-07-17 00:53:49 +02:00
|
|
|
configureNginx = true;
|
2024-07-15 13:45:58 +02:00
|
|
|
url = "https://fedi.liv.town"; # The domain your Iceshrimp UI will be served on.
|
|
|
|
|
settings.db.host = "/run/postgresql"; # omitting this setting causes some configurations to fail
|
|
|
|
|
};
|
|
|
|
|
dbPasswordFile = /var/iceshrimp/dbPasswordFile;
|
|
|
|
|
secretConfig = /var/iceshrimp/secretConfig.yml;
|
2024-07-15 11:49:02 +02:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|