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.
This commit is contained in:
Khaïs COLIN 2024-08-11 17:15:23 +02:00
parent c37724ec6d
commit 687f517370

View file

@ -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. Its perfectly fine and recommended to leave