nixpkgs/nixos/modules
Austin Seipp 2a22554092 nixos/cockroachdb: simplify dataDir management, tweaks
This cleans up the CockroachDB expression, with a few suggestions from
@aszlig.

However, it brought up the note of using systemd's StateDirectory=
directive, which is a nice feature for managing long-term data files,
especially for UID/GID assigned services. However, it can only manage
directories under /var/lib (for global services), so it has to introduce
a special path to make use of it at all in the case someone wants a path
at a different root.

While the dataDir directive at the NixOS level is _occasionally_ useful,
I've gone ahead and removed it for now, as this expression is so new,
and it makes the expression cleaner, while other kinks can be worked out
and people can test drive it.

CockroachDB's dataDir directive, instead, has been replaced with
systemd's StateDirectory management to place the data under
/var/lib/cockroachdb for all uses.

There's an included RequiresMountsFor= clause like usual though, so if
people want dependencies for any kind of mounted device at boot
time/before database startup, it's easy to specify using their own
mount/filesystems clause.

This can also be reverted if necessary, but, we can see if anyone ever
actually wants that later on before doing it -- it's a backwards
compatible change, anyway.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-12-04 19:44:16 -06:00
..
config Merge pull request #36424 from jfrankenau/i18n-extra-locale 2018-11-29 16:22:34 +01:00
hardware nixos/hpsa: use https 2018-11-24 23:05:10 +01:00
i18n/input-method docs: format 2018-09-29 20:51:11 -04:00
installer iso-image: Do not use batch operations for mcopy. 2018-11-28 19:14:54 -05:00
misc nixos/cockroachdb: create new service 2018-12-01 19:07:49 -06:00
profiles Revert "zfs cannot be distributed. Disabling it in the isos." 2018-11-26 17:51:18 -05:00
programs Merge pull request #51316 from primeos/sway 2018-12-02 22:03:31 +01:00
security nixos/rngd: do not pass --version flag 2018-11-05 10:41:38 +01:00
services nixos/cockroachdb: simplify dataDir management, tweaks 2018-12-04 19:44:16 -06:00
system Revert "nixos/luksroot: Check whether the device already exists" 2018-12-02 17:27:35 +00:00
tasks nixos: move system.autoUpgrade 2018-11-17 14:05:30 +01:00
testing Add ssh backdoor to VM tests infrastructure. 2018-09-28 10:53:08 +01:00
virtualisation Merge pull request #51393 from arianvp/container-names 2018-12-05 01:25:16 +01:00
module-list.nix Merge pull request #48423 from charles-dyfis-net/bees 2018-12-02 18:38:47 +01:00
rename.nix ckb-next: move option renames to nixos/modules/rename.nix for consistency 2018-11-06 00:50:00 +00:00