machine/thinkman: config remote-builder

This commit is contained in:
Felix Buehler 2024-03-17 12:12:37 +01:00
parent b37162bd3f
commit 2ec11aaa48
3 changed files with 24 additions and 2 deletions

View file

@ -0,0 +1,19 @@
# 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 = [ "nixos-test" "benchmark" "kvm" "big-parallel" ];
sshUser = "nixremote";
sshKey = secrets."nixremote/ssh_key".path;
}
];
nix.distributedBuilds = true;
}