Enable search

This commit is contained in:
dump_stack() 2024-10-14 15:15:25 +00:00
parent d89e2d0407
commit 911ab3d7ba
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -78,6 +78,15 @@ in {
compression = "gzip"; compression = "gzip";
}; };
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"elasticsearch"
];
services.elasticsearch = {
enable = true;
package = pkgs.elasticsearch7;
};
systemd.services.postgresqlBackup-mastodon.serviceConfig.ExecStartPost = systemd.services.postgresqlBackup-mastodon.serviceConfig.ExecStartPost =
pkgs.writeShellScript "backup-to-s3" '' pkgs.writeShellScript "backup-to-s3" ''
cd /var/backup/postgresql cd /var/backup/postgresql
@ -151,6 +160,8 @@ in {
passwordFile = builtins.toFile "smtp-password" secrets.smtpPassword; passwordFile = builtins.toFile "smtp-password" secrets.smtpPassword;
}; };
elasticsearch.host = "localhost";
vapidPublicKeyFile = builtins.toFile "vapidPublicKey" secrets.vapidPublicKey; vapidPublicKeyFile = builtins.toFile "vapidPublicKey" secrets.vapidPublicKey;
secretKeyBaseFile = builtins.toFile "secretKeyBase" secrets.secretKeyBase; secretKeyBaseFile = builtins.toFile "secretKeyBase" secrets.secretKeyBase;
otpSecretFile = builtins.toFile "otpSecret" secrets.otpSecret; otpSecretFile = builtins.toFile "otpSecret" secrets.otpSecret;