From 663992bd5a621a40a8f0124369d5ffa821871e19 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 29 Apr 2018 20:04:48 +0200 Subject: SatoshiPay: Startup mongodb and redis automatically, after delay --- modules/satoshipay.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix index d8787ebb..36561b52 100644 --- a/modules/satoshipay.nix +++ b/modules/satoshipay.nix @@ -41,10 +41,26 @@ replSetName = "rs0"; }; systemd.services.mongodb.wantedBy = lib.mkForce []; + systemd.timers.mongodb = { + description = "Delayed startup of MongoDB"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnActiveSec = "1 min"; + }; + }; + services.redis = { enable = true; }; systemd.services.redis.wantedBy = lib.mkForce []; + systemd.timers.redis = { + description = "Delayed startup of Redis"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnActiveSec = "1 min"; + }; + }; + services.printing.drivers = with pkgs; [ cups-toshiba-estudio -- cgit 1.4.1