Files
lix/lix/nix/daemon.md
T
eldritch horrorsandjade b0d7a81613 fix tooling after include reorganization
clangd broke because it can't look through symlinks. compile_commands
manipulation does not fix it, clangd configuration does not fix it, a
vfs overlay does not fix it, and while a combination of those can fix
it with a bind mount in place that's just too cursed to even consider

clangd bug: https://github.com/llvm/llvm-project/issues/116877

Change-Id: I8e3e8489548eb3a7aa65ac9d12a5ec8abf814aec
2024-11-19 22:55:32 +00: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.

)""