Forgejo runners on nixos using disko for extra fast provisioning.
Find a file
2025-01-01 16:44:48 -06:00
.forgejo/workflows PR --> Build --> Merge --> Deploy 2024-08-07 20:09:36 -05:00
.taskfiles/sops move tasks to mise 2025-01-01 16:17:05 -06:00
.vscode setup nix ide 2025-01-01 16:16:50 -06:00
cachix Build caching. 2024-05-23 12:22:57 -05:00
examples moving all config to one type and updating to 24.11, lots of flake updates 2025-01-01 16:44:48 -06:00
mise-tasks move tasks to mise 2025-01-01 16:17:05 -06:00
profiles moving all config to one type and updating to 24.11, lots of flake updates 2025-01-01 16:44:48 -06:00
.editorconfig moving all config to one type and updating to 24.11, lots of flake updates 2025-01-01 16:44:48 -06:00
.envrc Add shell for nix 2024-05-18 10:34:43 -05:00
.gitignore added automation scripts for easy agent rebuilds. 2024-09-13 17:16:21 -05:00
.sops.yaml replace sops key 2024-07-15 20:31:54 -05:00
cachix.nix Build caching. 2024-05-23 12:22:57 -05:00
disko-hetzner-cloud.nix Update device. 2024-05-14 12:33:41 -05:00
disko-shadowfax.nix restructuring 2024-09-07 14:50:44 -05:00
flake.lock moving all config to one type and updating to 24.11, lots of flake updates 2025-01-01 16:44:48 -06:00
flake.nix moving all config to one type and updating to 24.11, lots of flake updates 2025-01-01 16:44:48 -06:00
README.md moving all config to one type and updating to 24.11, lots of flake updates 2025-01-01 16:44:48 -06:00
renovate.json disable lockfile maint. by renovate. 2024-08-07 19:34:03 -05:00
shell.nix packages already in system 2024-08-07 19:40:21 -05:00
Taskfile.yaml Add sops taskfile 2024-05-14 12:48:04 -05:00

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