From 8deddc822cb7cb189d32fd9085eedfde9d53b86a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 6 Jan 2021 17:41:35 +0100 Subject: satoshipay: remove mongodb --- system/settings/satoshipay.nix | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'system/settings') diff --git a/system/settings/satoshipay.nix b/system/settings/satoshipay.nix index febe4da9..90517a61 100644 --- a/system/settings/satoshipay.nix +++ b/system/settings/satoshipay.nix @@ -30,32 +30,6 @@ in ip6tables -A nixos-fw -p udp --source ${dockerConfig.fixed-cidr-v6} -j nixos-fw-accept ''; - services.mongodb = { - enable = true; - replSetName = "rs0"; - bind_ip = "127.0.0.1"; - dbpath = "/tmp/mongodb"; - }; - systemd.services.mongodb.wantedBy = lib.mkForce []; - systemd.timers.mongodb = { - description = "Delayed startup of MongoDB"; - wantedBy = [ "timers.target" ]; - timerConfig = { - OnActiveSec = "1 min"; - }; - }; - systemd.services.mongodb-init = { - description = "Init mongodb replicaset"; - requires = [ "mongodb.service" ]; - script = "${pkgs.mongodb}/bin/mongo --eval 'rs.initiate()'"; - }; - systemd.timers.mongodb-init = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnActiveSec = "2 min"; - }; - }; - services.postgresql = { enable = true; ensureDatabases = ["satoshipay"]; -- cgit 1.4.1