testing ssh config

This commit is contained in:
2025-01-20 15:52:12 -05:00
parent 793d06683e
commit 7f3bb43d39
2 changed files with 11 additions and 2 deletions

View File

@@ -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

View File

@@ -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;