From 687f517370c431fd8fa32bc3708c45599b2941e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 11 Aug 2024 17:15:23 +0200 Subject: [PATCH] fix(remote build): actually the config needs to be systemwide This makes some amount of sense, since it would probably be the nix daemon that is connecting to the remote build machine. --- nixos/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 3b5c62b..084594d 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -366,6 +366,14 @@ in dockerSocket.enable = true; }; + # configure ssh + programs.ssh = { + enable = true; + # ensure remote nix build can acces nix environment + # https://wiki.nixos.org/wiki/Distributed_build + matchBlocks.void.setEnv.PATH = "/nix/var/nix/profiles/default/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave