summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/remote-build
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-07-28 22:24:15 +0200
committermakefu <github@syntax-fehler.de>2023-07-28 22:24:15 +0200
commit060a8f28fa1fc648bdf66afb31a5d1efac868837 (patch)
tree2b354eacc7897365ee45244fe7a51720e0d0333f /makefu/2configs/remote-build
parentcbfcc890e3b76d942b927809bf981a5fa7289e6a (diff)
makefu: move out to own repo, add vacation-note
Diffstat (limited to 'makefu/2configs/remote-build')
-rw-r--r--makefu/2configs/remote-build/aarch64-community.nix15
-rw-r--r--makefu/2configs/remote-build/arm-emulation.nix25
-rw-r--r--makefu/2configs/remote-build/gum.nix23
-rw-r--r--makefu/2configs/remote-build/slave.nix12
4 files changed, 0 insertions, 75 deletions
diff --git a/makefu/2configs/remote-build/aarch64-community.nix b/makefu/2configs/remote-build/aarch64-community.nix
deleted file mode 100644
index d57eacd68..000000000
--- a/makefu/2configs/remote-build/aarch64-community.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- nix = {
- distributedBuilds = true;
- buildMachines = [
- {
- hostName = "aarch64.nixos.community";
- maxJobs = 64;
- sshKey = toString <secrets/nixos-community>;
- sshUser = "makefu";
- system = "aarch64-linux";
- supportedFeatures = [ "big-parallel" ];
- }
- ];
- };
-}
diff --git a/makefu/2configs/remote-build/arm-emulation.nix b/makefu/2configs/remote-build/arm-emulation.nix
deleted file mode 100644
index dbef25222..000000000
--- a/makefu/2configs/remote-build/arm-emulation.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ pkgs, ... }:
-let qemu-arm-static = pkgs.stdenv.mkDerivation {
- name = "qemu-arm-static";
- src = builtins.fetchurl {
- url = "https://github.com/multiarch/qemu-user-static/releases/download/v6.1.0-8/qemu-arm-static";
- sha256 = "06344d77d4f08b3e1b26ff440cb115179c63ca8047afb978602d7922a51231e3";
- };
- dontUnpack = true;
- installPhase = "install -D -m 0755 $src $out/bin/qemu-arm-static";
-};
-in {
- # Enable binfmt emulation of extra binary formats (armv7l-linux, for exmaple).
- boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
- boot.binfmt.registrations.arm = {
- interpreter = "${qemu-arm-static}/bin/qemu-arm-static";
- magicOrExtension = ''\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00'';
- mask = ''\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x00\xff\xfe\xff\xff\xff'';
- };
-
- # Define additional settings for nix.
- nix.extraOptions = ''
- extra-platforms = armv7l-linux
- '';
- nix.sandboxPaths = [ "/run/binfmt/arm=${qemu-arm-static}/bin/qemu-arm-static" ];
-}
diff --git a/makefu/2configs/remote-build/gum.nix b/makefu/2configs/remote-build/gum.nix
deleted file mode 100644
index 39e90f1b8..000000000
--- a/makefu/2configs/remote-build/gum.nix
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- nix = {
- distributedBuilds = true;
- buildMachines = [
- {
- hostName = "gum.krebsco.de";
- maxJobs = 8;
- sshKey = toString <secrets/id_nixBuild>;
- sshUser = "nixBuild";
- system = "x86_64-linux";
- supportedFeatures = [ ];
- }
- {
- hostName = "gum.krebsco.de";
- maxJobs = 8;
- sshKey = toString <secrets/id_nixBuild>;
- sshUser = "nixBuild";
- system = "armv6l-linux";
- supportedFeatures = [ ];
- }
- ];
- };
-}
diff --git a/makefu/2configs/remote-build/slave.nix b/makefu/2configs/remote-build/slave.nix
deleted file mode 100644
index 039698f1d..000000000
--- a/makefu/2configs/remote-build/slave.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{config,...}:{
- nix.trustedUsers = [ "nixBuild" ];
- users.users.nixBuild = {
- name = "nixBuild";
- isNormalUser = true;
- useDefaultShell = true;
- openssh.authorizedKeys.keys = [
- config.krebs.users.buildbotSlave.pubkey
- config.krebs.users.makefu-remote-builder.pubkey
- ];
- };
-}