all repos — nixfiles @ 8deddc822cb7cb189d32fd9085eedfde9d53b86a

System and user configuration, managed by nix and home-manager

satoshipay: remove mongodb
Alan Pearce alan@alanpearce.eu
Wed, 06 Jan 2021 17:41:35 +0100
commit

8deddc822cb7cb189d32fd9085eedfde9d53b86a

parent

aac9eaf7652cb4b507d49b6ac392b3419fd0b52d

1 files changed, 0 insertions(+), 26 deletions(-)

jump to
M system/settings/satoshipay.nixsystem/settings/satoshipay.nix
@@ -30,32 +30,6 @@ ip6tables -A nixos-fw -p tcp --source ${dockerConfig.fixed-cidr-v6} -j nixos-fw-accept     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"];