about summary refs log tree commit diff
path: root/third_party/nix/misc/systemd/nix-daemon.socket.in
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/misc/systemd/nix-daemon.socket.in')
-rw-r--r--third_party/nix/misc/systemd/nix-daemon.socket.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/nix/misc/systemd/nix-daemon.socket.in b/third_party/nix/misc/systemd/nix-daemon.socket.in
new file mode 100644
index 000000000000..9ed39ffe6eb2
--- /dev/null
+++ b/third_party/nix/misc/systemd/nix-daemon.socket.in
@@ -0,0 +1,11 @@
+[Unit]
+Description=Nix Daemon Socket
+Before=multi-user.target
+RequiresMountsFor=@storedir@
+ConditionPathIsReadWrite=@localstatedir@/nix/daemon-socket
+
+[Socket]
+ListenStream=@localstatedir@/nix/daemon-socket/socket
+
+[Install]
+WantedBy=sockets.target