Enable search
This commit is contained in:
parent
d89e2d0407
commit
911ab3d7ba
11
mastodon.nix
11
mastodon.nix
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user