diff --git a/.github/workflows/nix-github-actions.yml b/.github/workflows/nix-github-actions.yml index 4b90626..484c0e4 100644 --- a/.github/workflows/nix-github-actions.yml +++ b/.github/workflows/nix-github-actions.yml @@ -9,7 +9,7 @@ on: jobs: nix-matrix: - runs-on: ubuntu-latest + runs-on: [self-hosted] outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: diff --git a/hosts/Persephone/default.nix b/hosts/Persephone/default.nix index 4815cf8..3113271 100644 --- a/hosts/Persephone/default.nix +++ b/hosts/Persephone/default.nix @@ -7,6 +7,7 @@ imports = [ ./boot.nix ./fah.nix + ./github-runners.nix ./migration.nix ./minidlna.nix ./networking.nix diff --git a/hosts/Persephone/github-runners.nix b/hosts/Persephone/github-runners.nix new file mode 100644 index 0000000..5fd04cb --- /dev/null +++ b/hosts/Persephone/github-runners.nix @@ -0,0 +1,8 @@ +{config, ...}: { + services.github-runners.chfanghr-dotfiles-v2 = { + tokenFile = config.age.secrets."github-runner-token-chfanghr-dotfiles-v2".path; + url = "https://github.com/chfanghr/dotfiles-v2"; + }; + + age.secrets."github-runner-token-chfanghr-dotfiles-v2".file = ../../secrets/github-runner-token-chfanghr-dotfiles-v2.age; +} diff --git a/secrets/github-runner-token-chfanghr-dotfiles-v2.age b/secrets/github-runner-token-chfanghr-dotfiles-v2.age new file mode 100644 index 0000000..affc604 --- /dev/null +++ b/secrets/github-runner-token-chfanghr-dotfiles-v2.age @@ -0,0 +1,7 @@ +age-encryption.org/v1 +-> ssh-ed25519 lk+IKg yLlInRMAd1rpsESoegJ6sjSnENecmu/Ij9BD46lURAo +3PytzcFPJjeavcLeaLeeB7yKrdseNgupU3/z4FCRJWQ +-> ssh-ed25519 hmI59g Juh/ziS+CCyr2p96sGXr5tqnmb2ypHRklwDVwffYfQI +lqMRDn3wSwADQCXFTYnFTmk5Qojr6z67Fwe/ULQXYPs +--- gXiHZHesLq5iltGMRW6BjVsR0VylFxz1mrioiYITmsM +͚MCٍ v4o^ttVvX-q;)Vg{5eo5e$ \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 591f077..f55fb2a 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -8,4 +8,5 @@ in { "artemis-cifs-credential.age".publicKeys = [master persephone]; "yotsuba.key.age".publicKeys = [master persephone]; "oizys-pap-password.age".publicKeys = [master oizys]; + "github-runner-token-chfanghr-dotfiles-v2.age".publicKeys = [master persephone]; }