diff options
author | Alan Pearce | 2021-01-06 17:41:35 +0100 |
---|---|---|
committer | Alan Pearce | 2021-01-06 17:41:35 +0100 |
commit | 8deddc822cb7cb189d32fd9085eedfde9d53b86a (patch) | |
tree | fdde092e96674988ed68c82963cfe0dff1a5d32a /system/settings | |
parent | aac9eaf7652cb4b507d49b6ac392b3419fd0b52d (diff) | |
download | nixfiles-8deddc822cb7cb189d32fd9085eedfde9d53b86a.tar.lz nixfiles-8deddc822cb7cb189d32fd9085eedfde9d53b86a.tar.zst nixfiles-8deddc822cb7cb189d32fd9085eedfde9d53b86a.zip |
satoshipay: remove mongodb
Diffstat (limited to 'system/settings')
-rw-r--r-- | system/settings/satoshipay.nix | 26 |
1 files changed, 0 insertions, 26 deletions
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"]; |