Forgejo runners on nixos using disko for extra fast provisioning.
.forgejo/workflows | ||
.taskfiles/sops | ||
.vscode | ||
cachix | ||
examples | ||
mise-tasks | ||
profiles | ||
.editorconfig | ||
.envrc | ||
.gitignore | ||
.sops.yaml | ||
cachix.nix | ||
disko-hetzner-cloud.nix | ||
disko-shadowfax.nix | ||
flake.lock | ||
flake.nix | ||
README.md | ||
renovate.json | ||
shell.nix | ||
Taskfile.yaml |
Incus VM Build and Deploy
Quick Start
Prerequisites:
Add your forgejo runner token in 1Password at op://forgejo-runner/forgejo-runner/runner_token
Build, import, and deploy
mise run build_import
mise run launch
Manually
Build
qemuImageBuildPath=$(nix build .#nixosConfigurations.lxc-vm-x86_64.config.system.build.qemuImage --print-out-paths)
metadataBuildPath=$(nix build .#nixosConfigurations.lxc-vm-x86_64.config.system.build.metadata --print-out-paths)
Deploy
incus image import --alias nixos-gen/custom/lxc-vm-x86_64 ${metadataPath}/tarball/nixos-system-x86_64-linux.tar.xz ${qemuImageOutputPath}/nixos.qcow2
incus file push "$TOKEN_FILE" "$INCUS_INSTANCE/var/lib/forgejo/$TOKEN_FILE" --mode 400