diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index e6528777c325..09a874481dc6 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 ];