nixos/machines/workman/remote-build.nix

25 lines
464 B
Nix
Raw Permalink Normal View History

2025-05-04 20:20:28 +02:00
# enabled remote-build service
{ config, ... }:
let
inherit (config.sops) secrets;
in
{
sops.secrets."nixremote/ssh_key" = { };
nix.buildMachines = [
{
hostName = "buehler.rocks";
system = "x86_64-linux";
supportedFeatures = [
"benchmark"
"kvm"
"big-parallel"
];
sshUser = "nixremote";
sshKey = secrets."nixremote/ssh_key".path;
maxJobs = 4;
}
];
nix.distributedBuilds = true;
}