all repos — archive/nixos-configuration @ 2ab847b54ba9ab409eeb6ac8924934269990f4d8

Superseded by nixfiles

Merge remote-tracking branch 'origin/master'

Alan Pearce
commit

2ab847b54ba9ab409eeb6ac8924934269990f4d8

parent

24d018aae43738aae766dc9932c07f16ffb451b8

1 file changed, 13 insertions(+), 9 deletions(-)

changed files
M modules/satoshipay.nixmodules/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"; }; };