|
21 | 21 | }; |
22 | 22 |
|
23 | 23 | # Define secrets that will be decrypted to /run/secrets/ |
| 24 | + # Runner-specific secrets are defined in their respective profiles: |
| 25 | + # - profiles/github-runners.nix (github-app-id, github-app-key) |
| 26 | + # - profiles/gitlab-runners.nix (gitlab-access-token, gitlab-instance-url, etc.) |
| 27 | + # - profiles/gitea-runners.nix (gitea-registration-token, gitea-instance-url, etc.) |
24 | 28 | secrets = { |
25 | | - # GitHub App ID for fireactions |
26 | | - "github-app-id" = { |
27 | | - # Path in secrets.yaml: github_app_id |
28 | | - key = "github_app_id"; |
29 | | - |
30 | | - # Permissions |
31 | | - mode = "0400"; |
32 | | - owner = "root"; |
33 | | - group = "root"; |
34 | | - |
35 | | - # Restart fireactions when secret changes |
36 | | - restartUnits = [ "fireactions-config.service" ]; |
37 | | - }; |
38 | | - |
39 | | - # GitHub App private key for fireactions |
40 | | - "github-app-key" = { |
41 | | - # Path in secrets.yaml: github_app_private_key |
42 | | - key = "github_app_private_key"; |
43 | | - |
44 | | - # Permissions |
45 | | - mode = "0400"; |
46 | | - owner = "root"; |
47 | | - group = "root"; |
48 | | - |
49 | | - # Restart fireactions when secret changes |
50 | | - restartUnits = [ "fireactions-config.service" ]; |
51 | | - }; |
52 | | - |
53 | | - # Debug SSH key for VM access (optional, used by dev profile) |
| 29 | + # Debug SSH key for VM access (used by dev profile for all runner types) |
54 | 30 | "debug-ssh-key" = { |
55 | | - # Path in secrets.yaml: debug_ssh_key |
56 | 31 | key = "debug_ssh_key"; |
57 | | - |
58 | | - # Permissions |
59 | 32 | mode = "0400"; |
60 | 33 | owner = "root"; |
61 | 34 | group = "root"; |
62 | | - |
63 | | - # Restart fireactions-config to regenerate cloud-init user-data |
64 | | - restartUnits = [ "fireactions-config.service" ]; |
| 35 | + # Restart all config services to regenerate cloud-init user-data |
| 36 | + restartUnits = [ |
| 37 | + "fireactions-config.service" |
| 38 | + "fireteact-config.service" |
| 39 | + "fireglab-config.service" |
| 40 | + ]; |
65 | 41 | }; |
66 | 42 |
|
67 | | - # Gitea secrets for fireteact are defined in modules/fireteact/default.nix |
68 | | - # They are conditional based on which *File options are used |
69 | 43 | }; |
70 | 44 | }; |
71 | 45 | } |
0 commit comments