From 5f980fc1932810b6429a08b912f6b1373acf4de4 Mon Sep 17 00:00:00 2001 From: willifan Date: Sun, 8 Dec 2024 19:10:16 +0100 Subject: [PATCH 1/2] added Damin syncthing --- hosts/Anton/syncthing.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/Anton/syncthing.nix b/hosts/Anton/syncthing.nix index d3f4d06..a959065 100644 --- a/hosts/Anton/syncthing.nix +++ b/hosts/Anton/syncthing.nix @@ -16,6 +16,7 @@ devices = { Lenni = { id = "XS6NR2Q-DHVB5G4-P43CHWR-TVBIY5A-FCIS7CU-S5UVNZA-5YPJYST-2EO2GAG"; }; Puenktchen = { id = "VP3YVIM-JNSZTXV-7AS7FA2-3W5QKH6-XOWXX7N-STUR4JR-PR6SPCV-HJZMAAN"; }; + Damin = { id = "HAGKFGG-EMCPKHG-Y7V2ACJ-DJVAIIA-A6TNGTQ-VWPB3F5-PES673W-W2YBJAD"; }; }; folders = { "Documents" = { @@ -26,7 +27,7 @@ "Enpass" = { id = "ciksm-xsw4m"; path = "/mnt/data/services/syncthing/data/Enpass"; - devices = [ "Lenni" "Puenktchen" ]; + devices = [ "Lenni" "Puenktchen" "Damin" ]; }; "Pictures" = { id = "po4qj-q9t0t"; From 1b94cf91f453adba5a111f1d002395b2018c976b Mon Sep 17 00:00:00 2001 From: willifan Date: Sat, 14 Dec 2024 18:47:14 +0100 Subject: [PATCH 2/2] added aarch64-linux emulation to Anton --- hosts/desktop/remoteBuilder.nix | 2 +- hosts/server/builder.nix | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/desktop/remoteBuilder.nix b/hosts/desktop/remoteBuilder.nix index c9e24dd..c30b0fd 100644 --- a/hosts/desktop/remoteBuilder.nix +++ b/hosts/desktop/remoteBuilder.nix @@ -4,7 +4,7 @@ nix.buildMachines = [ { hostName = "Anton"; sshUser = "builder"; - system = "x86_64-linux"; + systems = [ "x86_64-linux" "aarch64-linux" ]; protocol = "ssh"; # if the builder supports building for multiple architectures, # replace the previous line by, e.g. diff --git a/hosts/server/builder.nix b/hosts/server/builder.nix index 402c6e2..3d24bc4 100644 --- a/hosts/server/builder.nix +++ b/hosts/server/builder.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, ... }: { users.users.builder = { group = "builder"; @@ -8,4 +8,7 @@ }; users.groups.builder = { }; nix.settings.trusted-users = [ "builder" "willifan" ]; + + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems; }