···1010 { what = "${pkgs.mfi}/dl"; where = "${stateDir}/dl"; }
1111 { what = "${pkgs.mfi}/lib"; where = "${stateDir}/lib"; }
1212 { what = "${pkgs.mongodb248}/bin"; where = "${stateDir}/bin"; }
1313+ { what = "${cfg.dataDir}"; where = "${stateDir}/data"; }
1314 ];
1415 systemdMountPoints = map (m: "${utils.escapeSystemdPath m.where}.mount") mountPoints;
1516 ports = [ 6080 6880 6443 6843 ];
···2223 type = types.bool;
2324 default = true;
2425 description = "Whether to open TCP ports ${concatMapStrings (a: "${toString a} ") ports}for the services.";
2626+ };
2727+ dataDir = mkOption {
2828+ type = types.str;
2929+ default = "${stateDir}/data";
3030+ description = ''
3131+ Where to store the database and other data.
3232+3333+ This directory will be bind-mounted to ${stateDir}/data as part of the service startup.
3434+ '';
2535 };
2636 };
2737 };