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..c3d2a4a39e57
--- /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
+KillMode=process
+
+[Install]
+WantedBy=multi-user.target