nixos-config/modules/remotebuild/client.nix

31 lines
698 B
Nix
Raw Permalink Normal View History

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