From 9bb40b7a5b05c61bceb200e770a58fc3250ce23a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 18 Apr 2014 14:47:02 +0200 Subject: [PATCH] Pull in nix-daemon.socket This led to the container test failing, which made no sense whatsoever, until I realized nix-daemon.socket creates the socket directory as a side effect, which systemd-nspawn then bind-mounts. http://hydra.nixos.org/build/10397575 --- nixos/modules/services/misc/nix-daemon.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index e6528777c32..09a874481dc 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -277,6 +277,8 @@ in systemd.packages = [ nix ]; + systemd.sockets.nix-daemon.wantedBy = [ "sockets.target" ]; + systemd.services.nix-daemon = { path = [ nix pkgs.openssl pkgs.utillinux pkgs.openssh ] ++ optionals cfg.distributedBuilds [ pkgs.gzip ];