nixos-config/modules/remotebuild/client.nix
2025-03-23 20:20:48 +01:00

30 lines
698 B
Nix

{ config, ... }:
{
sops.secrets."nixremote/nixremote" = {};
sops.secrets."nixremote/nixremote.pub" = {};
nix.buildMachines =
let
system = "x86_64-linux";
protocol = "ssh-ng";
sshUser = "nixremote";
sshKey = config.sops.secrets."nixremote/nixremote".path;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
in
[
{
inherit system protocol sshUser sshKey supportedFeatures;
hostName = "mc2";
}
{
inherit system protocol sshUser sshKey supportedFeatures;
hostName = "mc7";
}
];
nix.distributedBuilds = true;
nix.extraOptions = ''
builders-use-substitutes = true
'';
}
# vim: set et ts=2 sw=2 ai: