mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
30 lines
929 B
Nix
30 lines
929 B
Nix
{ config, pkgs, iceshrimp, ... }:
|
|
{
|
|
|
|
services = {
|
|
# postgresql = {
|
|
# enable = true;
|
|
# initialScript = pkgs.writeText "iceshrimp.sql" ''
|
|
# CREATE ROLE "iceshrimp" WITH LOGIN PASSWORD 'uph2reeloo3aeDae4muc';
|
|
# CREATE DATABASE "iceshrimp" WITH OWNER "iceshrimp"
|
|
# TEMPLATE template0
|
|
# LC_COLLATE = "C"
|
|
# LC_CTYPE = "C";
|
|
# '';
|
|
# };
|
|
|
|
|
|
# > "@liv the nix package is sadly broken at the moment"
|
|
# iceshrimp = {
|
|
# enable = true;
|
|
# settings = {
|
|
# configureNginx = true;
|
|
# createDb = 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;
|
|
# };
|
|
};
|
|
}
|