dcaba9de64
Implement the main function for the new, proto-based nix daemon. This mostly replicates the behavior of the previous nix daemon - it starts a grpc server listening on the same nix socket path and supports the same set of options - with the exception of --stdio, which has been renamed to --pipe and documented in the man page. Change-Id: Ib729283c1d5d35c0e1b0a968bc1f052f5527f2d7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1356 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: kanepyork <rikingcoding@gmail.com>
12 lines
260 B
SYSTEMD
12 lines
260 B
SYSTEMD
[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
|