about summary refs log tree commit diff
path: root/third_party/nix/misc/systemd/nix-daemon.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/misc/systemd/nix-daemon.service.in')
-rw-r--r--third_party/nix/misc/systemd/nix-daemon.service.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/nix/misc/systemd/nix-daemon.service.in b/third_party/nix/misc/systemd/nix-daemon.service.in
new file mode 100644
index 000000000000..25655204d4df
--- /dev/null
+++ b/third_party/nix/misc/systemd/nix-daemon.service.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=Nix Daemon
+RequiresMountsFor=@storedir@
+RequiresMountsFor=@localstatedir@
+ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket
+
+[Service]
+ExecStart=@@bindir@/nix-daemon nix-daemon --daemon
+KillMode=process
+
+[Install]
+WantedBy=multi-user.target