From 3865b5489c7c7ed0a7a0523986f8d7d178ed356c Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Mon, 8 Jan 2024 12:43:04 +0100 Subject: [PATCH] remote builders --- flake.lock | 8 ++++---- machines/manager/builder.nix | 12 ++++++++++++ machines/manager/default.nix | 1 + machines/node/builder.nix | 14 ++++++++++++++ machines/node/default.nix | 1 + 5 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 machines/manager/builder.nix create mode 100644 machines/node/builder.nix diff --git a/flake.lock b/flake.lock index a958dbe..963aa54 100644 --- a/flake.lock +++ b/flake.lock @@ -207,11 +207,11 @@ "ldap-sync": { "flake": false, "locked": { - "lastModified": 1688052624, - "narHash": "sha256-tQ0C/0zMgOYTSxzIy9koED4jzGNZygknrsC9Q6RtaJE=", + "lastModified": 1704504213, + "narHash": "sha256-4Ocmxlx3oXVx9yKEYRlQFkeYI5MF8JoBtQtBJyggYLc=", "ref": "refs/heads/main", - "rev": "69ce1d4f1a41ee313f5cb484a0bfecad9a545694", - "revCount": 11, + "rev": "363cb3f06378eb2de7571dc9048dded01cf11950", + "revCount": 12, "type": "git", "url": "https://gogs.informatik.hs-fulda.de/fooker/ldap-sync.git" }, diff --git a/machines/manager/builder.nix b/machines/manager/builder.nix new file mode 100644 index 0000000..8d85420 --- /dev/null +++ b/machines/manager/builder.nix @@ -0,0 +1,12 @@ +{ pkgs, lib, ... }: + +with lib; + +{ + users.users."root" = { + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC8PSp2KXizMadFQIeoTuedi+xWUnWgAoz0J6dDDcrad" + ]; + }; +} + diff --git a/machines/manager/default.nix b/machines/manager/default.nix index e8af505..3a4e120 100644 --- a/machines/manager/default.nix +++ b/machines/manager/default.nix @@ -23,6 +23,7 @@ with lib; ./slurm.nix ./docs.nix ./monitoring.nix + ./builder.nix ]; deployment = { diff --git a/machines/node/builder.nix b/machines/node/builder.nix new file mode 100644 index 0000000..c3eb6d4 --- /dev/null +++ b/machines/node/builder.nix @@ -0,0 +1,14 @@ +{ pkgs, lib, ... }: + +with lib; + +{ + boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ]; + + users.users."root" = { + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC8PSp2KXizMadFQIeoTuedi+xWUnWgAoz0J6dDDcrad" + ]; + }; +} + diff --git a/machines/node/default.nix b/machines/node/default.nix index a433025..950b34a 100644 --- a/machines/node/default.nix +++ b/machines/node/default.nix @@ -10,6 +10,7 @@ with lib; ./network.nix ./users.nix ./slurm.nix + ./builder.nix ]; _module.args = {