Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
daemon.cc File Reference
#include "nix/util/signals.hh"
#include "nix/cmd/command.hh"
#include "nix/main/shared.hh"
#include "nix/store/local-store.hh"
#include "nix/store/uds-remote-store.hh"
#include "nix/store/remote-store.hh"
#include "nix/store/remote-store-connection.hh"
#include "nix/store/store-open.hh"
#include "nix/util/serialise.hh"
#include "nix/util/strings.hh"
#include "nix/store/globals.hh"
#include "nix/util/config-global.hh"
#include "nix/store/derivations.hh"
#include "nix/cmd/legacy.hh"
#include "nix/cmd/unix-socket-server.hh"
#include "nix/store/daemon.hh"
#include "man-pages.hh"
#include "nix/util/socket.hh"
#include "nix/util/current-process.hh"
#include "nix/util/system-error.hh"
#include <algorithm>
#include <climits>
#include <cstring>
#include <variant>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <errno.h>
#include <pwd.h>
#include <grp.h>
#include <fcntl.h>
#include <membership.h>
#include "nix/util/cgroup.hh"
#include "daemon.md"

Classes

struct  nix::AuthorizationSettings
struct  nix::StdIO
struct  nix::CmdDaemon

Typedefs

using nix::UnixSocket = std::optional<std::filesystem::path>
using nix::DaemonMode = std::variant<StdIO, UnixSocket>

Variables

AuthorizationSettings nix::authorizationSettings

Typedef Documentation

◆ DaemonMode

using nix::DaemonMode = std::variant<StdIO, UnixSocket>

How the daemon should accept connections. See the underlying types for details on each choice.

◆ UnixSocket

using nix::UnixSocket = std::optional<std::filesystem::path>

Tag indicating the daemon should listen on a UNIX socket.

Use the the given path if defined, or at the default path for the given store (configuration) if std::nullopt.