Merge remote-tracking branch 'origin/master'
1 file changed, 13 insertions(+), 9 deletions(-)
changed files
M modules/satoshipay.nix → modules/satoshipay.nix
@@ -12,12 +12,6 @@ autoPrune = { enable = true; }; }; - - virtualbox = { - host = { - enable = true; - }; - }; }; nixpkgs.config.allowUnfree = true;@@ -26,16 +20,15 @@ environment.systemPackages = with pkgs; [ openssl google-chrome docker_compose - meteor - minikube mongodb-tools s3cmd sops unstable.google-cloud-sdk unstable.kubernetes + unstable.kubectx unstable.redis-desktop-manager unstable.kubernetes-helm - unstable.kompose + unstable.helmfile unstable.robo3t unstable.slack ];@@ -51,6 +44,17 @@ 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"; }; };