Warning
This program is experimental and its interface is subject to change.
Name
nix daemon - daemon to perform store operations on behalf of non-root clients
Synopsis
nix daemon [option...]
Examples
-
Run the daemon:
# nix daemon -
Run the daemon and listen on standard I/O instead of binding to a UNIX socket:
# nix daemon --stdio -
Run the daemon and force all connections to be trusted:
# nix daemon --force-trusted -
Run the daemon and force all connections to be untrusted:
# nix daemon --force-untrusted -
Run the daemon, listen on standard I/O, and force all connections to use Nix's default trust:
# nix daemon --stdio --default-trust
Description
This command runs the Nix daemon, which is a required component in
multi-user Nix installations. It runs build tasks and other
operations on the Nix store on behalf of non-root users. Usually you
don't run the daemon directly; instead it's managed by a service
management framework such as systemd on Linux, or launchctl on Darwin.
Note that this daemon does not fork into the background.
Options
-
--default-trustUse Nix's default trust. -
--force-trustedForce the daemon to trust connecting clients. -
--force-untrustedForce the daemon to not trust connecting clients. The connection will be processed by the receiving daemon before forwarding commands. -
--stdioAttach to standard I/O, instead of trying to bind to a UNIX socket.
Logging-related options:
-
--debugSet the logging verbosity level to 'debug'. -
--log-formatformat Set the format of log output; one ofraw,internal-json,bar,bar-with-logs,multilineormultiline-with-logs. -
--print-build-logs/-LPrint full build logs on standard error. -
--quietDecrease the logging verbosity level. -
--verbose/-vIncrease the logging verbosity level.
Miscellaneous global options:
-
--helpShow usage information. -
--offlineDisable substituters and consider all previously downloaded files up-to-date. -
--optionname value Set the Lix configuration setting name to value (overridingnix.conf). -
--refreshConsider all previously downloaded files out-of-date. -
--versionShow version information.
Note
See
man nix.conffor overriding configuration settings with command line flags.