[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