From 7f3bb43d39e627600c741b3e48c6b86b0f9918dd Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Mon, 20 Jan 2025 15:52:12 -0500 Subject: [PATCH] testing ssh config --- .github/workflows/build_systems.yml | 4 ++-- systems/jeeves/nix_builder.nix | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_systems.yml b/.github/workflows/build_systems.yml index f22a113..651db47 100644 --- a/.github/workflows/build_systems.yml +++ b/.github/workflows/build_systems.yml @@ -21,5 +21,5 @@ jobs: run: "nixos-rebuild build --flake ./#${{ matrix.system }}" - name: copy to nix-cache env: - NIX_SSHOPTS: "-p 629 -i /zfs/storage/secrets/services/github-runners/id_ed25519_github-runners -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -vv" - run: nix copy --to ssh://192.168.95.14 .#nixosConfigurations.${{ matrix.system }}.config.system.build.toplevel + NIX_SSHOPTS: "-vv" + run: nix copy --to ssh://jeeves .#nixosConfigurations.${{ matrix.system }}.config.system.build.toplevel diff --git a/systems/jeeves/nix_builder.nix b/systems/jeeves/nix_builder.nix index 4df979b..6a13be3 100644 --- a/systems/jeeves/nix_builder.nix +++ b/systems/jeeves/nix_builder.nix @@ -26,6 +26,15 @@ in "ssh-keys".mountPoint = "${vars.storage_secrets}/services/github-runners/id_ed25519_github-runners"; }; config = { config, pkgs, lib, ... }: { + programs.ssh.extraConfig = '' + Host jeeves + Port 629 + User github-runners + HostName 192.168.95.14 + IdentityFile ${vars.storage_secrets}/services/github-runners/${name} + StrictHostKeyChecking no + UserKnownHostsFile /dev/null + ''; services.github-runners.${name} = { enable = true; replace = true;