Configure remote build

This commit is contained in:
Paul-Henri Froidmont 2024-12-19 00:43:47 +01:00
parent f39b5f76b1
commit 053fafde54
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 20 additions and 2 deletions

View file

@ -17,12 +17,10 @@
settings = {
substituters = [
"https://nix-community.cachix.org"
"http://cache.banditlair.com"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.banditlair.com:4zk7iDvzKh6VN+LxzKIGcVPKgL5dLeyEt2ydrgx4o8c="
];
auto-optimise-store = true;
};

View file

@ -27,6 +27,26 @@
programs.kdeconnect.enable = true;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nix = {
distributedBuilds = true;
buildMachines = [
{
hostName = "hel1.banditlair.com";
sshUser = "nix-ssh";
system = "x86_64-linux";
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
}
];
settings = {
substituters = [ "ssh://nix-ssh@hel1.banditlair.com" ];
trusted-public-keys = [ "hel1.banditlair.com:stzB4xe5QTFvSABoP11ZpNzLDCRZ93PExk0Z/gOzW3g=" ];
};
};
# Allow to externally control MPD
networking.firewall.allowedTCPPorts = [ 6600 ];