all repos — nixfiles @ 29211f81353b076fbca7cf4417faa9dc0da3948e

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

satoshipay: Install mongod as a non-autostarted service
Alan Pearce alan@alanpearce.eu
Fri, 22 Sep 2017 15:58:45 +0200
commit

29211f81353b076fbca7cf4417faa9dc0da3948e

parent

29277c70cc00480b153409ddc465bc2144b4459b

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M modules/satoshipay.nixmodules/satoshipay.nix
@@ -1,4 +1,4 @@-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
 
 let
   pkgsUnstable = import <nixos-unstable> {};
@@ -16,10 +16,14 @@   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