2021-01-14 01:05:04 +02:00
|
|
|
R""(
|
|
|
|
|
2023-08-28 16:43:34 +03:00
|
|
|
# Examples
|
2021-01-14 01:05:04 +02:00
|
|
|
|
2023-08-28 16:43:34 +03:00
|
|
|
* Run the daemon:
|
2021-01-14 01:05:04 +02:00
|
|
|
|
|
|
|
```console
|
|
|
|
# nix daemon
|
|
|
|
```
|
|
|
|
|
2023-08-28 16:43:34 +03:00
|
|
|
* Run the daemon and listen on standard I/O instead of binding to a UNIX socket:
|
|
|
|
|
|
|
|
```console
|
|
|
|
# nix daemon --stdio
|
|
|
|
```
|
|
|
|
|
|
|
|
* Run the daemon and force all connections to be trusted:
|
|
|
|
|
|
|
|
```console
|
|
|
|
# nix daemon --force-trusted
|
|
|
|
```
|
|
|
|
|
|
|
|
* Run the daemon and force all connections to be untrusted:
|
|
|
|
|
|
|
|
```console
|
|
|
|
# nix daemon --force-untrusted
|
|
|
|
```
|
|
|
|
|
|
|
|
* Run the daemon, listen on standard I/O, and force all connections to use Nix's default trust:
|
|
|
|
|
|
|
|
```console
|
|
|
|
# nix daemon --stdio --default-trust
|
|
|
|
```
|
|
|
|
|
2021-01-14 01:05:04 +02:00
|
|
|
# Description
|
|
|
|
|
|
|
|
This command runs the Nix daemon, which is a required component in
|
2022-11-06 13:25:21 +02:00
|
|
|
multi-user Nix installations. It runs build tasks and other
|
2021-01-14 01:05:04 +02:00
|
|
|
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
|
2023-08-28 16:43:34 +03:00
|
|
|
management framework such as `systemd` on Linux, or `launchctl` on Darwin.
|
2021-01-14 01:05:04 +02:00
|
|
|
|
|
|
|
Note that this daemon does not fork into the background.
|
|
|
|
|
|
|
|
)""
|