nixos-config/modules/services/iceshrimp.nix

29 lines
799 B
Nix
Raw Normal View History

{ config, pkgs, iceshrimp, ... }:
2024-07-15 11:49:02 +02:00
{
services = {
2024-07-16 21:19:15 +02:00
postgresql = {
enable = true;
2024-07-17 01:00:41 +02:00
initialScript = pkgs.writeText "iceshrimp.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";
'';
};
iceshrimp = {
enable = true;
settings = {
configureNginx = true;
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
};
};
}