From 207de9cef0139cc183fd027a9622058038b29206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 7 May 2019 17:10:41 +0700 Subject: [PATCH] set NIX_REMOTE when using the daemon --- src/nix/modules/service/host-store.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nix/modules/service/host-store.nix b/src/nix/modules/service/host-store.nix index 3ec3a9f..9ec06fc 100644 --- a/src/nix/modules/service/host-store.nix +++ b/src/nix/modules/service/host-store.nix @@ -27,6 +27,7 @@ in image.nixBuild = false; # no need to build and load service.image = "arion-base"; service.build.context = "${../../../arion-image}"; + service.environment.NIX_REMOTE = lib.optionalString config.service.useHostNixDaemon "daemon"; service.volumes = [ "${config.host.nixStorePrefix}/nix/store:/nix/store" "${config.host.nixStorePrefix}${pkgs.buildEnv { name = "container-system-env"; paths = [ pkgs.bashInteractive pkgs.coreutils ]; }}:/run/system"