aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2022-03-29 21:05:57 -0400
committerGitHub <noreply@github.com>2022-03-29 21:05:57 -0400
commit3b26dd51ff0d7b51ec90141bfe2d05b52a4ecfd4 (patch)
treeeda9e3a5aaba3ca73e62697596567a32ecc916af
parent03be091e0acb97a6a0d65011ec9ac8d700ec9032 (diff)
nix-daemon.service: require mounts for /nix/var/nix/db
Users may want to mount a filesystem just for the Nix database, with the filesystem's parameters specially tuned for sqlite. For example, on ZFS you might set the recordsize to 64k after changing the database's page size to 65536.
-rw-r--r--misc/systemd/nix-daemon.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/systemd/nix-daemon.service.in b/misc/systemd/nix-daemon.service.in
index b4badf2ba..24d894898 100644
--- a/misc/systemd/nix-daemon.service.in
+++ b/misc/systemd/nix-daemon.service.in
@@ -3,6 +3,7 @@ Description=Nix Daemon
Documentation=man:nix-daemon https://nixos.org/manual
RequiresMountsFor=@storedir@
RequiresMountsFor=@localstatedir@
+RequiresMountsFor=@localstatedir@/nix/db
ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket
[Service]