summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-22 15:58:45 +0200
committerAlan Pearce2017-09-22 15:58:45 +0200
commit29211f81353b076fbca7cf4417faa9dc0da3948e (patch)
tree8e54a1fd942c54d132ecdc0a8175c7da43141099
parent29277c70cc00480b153409ddc465bc2144b4459b (diff)
downloadnixfiles-29211f81353b076fbca7cf4417faa9dc0da3948e.tar.lz
nixfiles-29211f81353b076fbca7cf4417faa9dc0da3948e.tar.zst
nixfiles-29211f81353b076fbca7cf4417faa9dc0da3948e.zip
satoshipay: Install mongod as a non-autostarted service
-rw-r--r--modules/satoshipay.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/satoshipay.nix b/modules/satoshipay.nix
index 2ff3b9eb..7e1a8d40 100644
--- a/modules/satoshipay.nix
+++ b/modules/satoshipay.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
 
 let
   pkgsUnstable = import <nixos-unstable> {};
@@ -16,11 +16,15 @@ in
   environment.systemPackages = with pkgs; [
     google-chrome
     docker_compose
-    mongodb
     electrum
     pkgsUnstable.scudcloud
   ];
 
+  services.mongodb = {
+    enable = true;
+  };
+  systemd.services.mongodb.wantedBy = lib.mkForce  [];
+
   services.printing.drivers = with pkgs; [
     pkgsUnstable.cups-toshiba-estudio
   ];