nix-super/src/nix/unix/daemon.md
John Ericson 02fa20622f Start factoring out Unix assumptions
This splits files and adds new identifiers in preperation for supporting
windows, but no Windows-specific code is actually added yet.

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-04-02 14:43:38 -04:00

991 B

R""(

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.

)""