Workflow for host mode on nixos runner #9

Open
tc424 wants to merge 1 commit from fj-act-nixos into master
Owner

Add a simple forgejo actions workflow than runs in host mode on a nixos machine/container - this felt like the simplest environment to get working initially. Ultimately it would be good to run in a docker container in any environment.

Add a simple forgejo actions workflow than runs in host mode on a nixos machine/container - this felt like the simplest environment to get working initially. Ultimately it would be good to run in a docker container in any environment.
Try to make tier0-nixos more easily buildable by CI:
All checks were successful
/ local_build (push) Successful in 3m43s
b6276b3cf5
- the vm-images repo has been tweaked to expose the actual nixos
   system configuration as well as just the built qcow2 image. This
   means the base configuration doesn't need to be duplicated here

 - vm-images is referenced by the top-level flake.nix, but the
   corpix/nixos provider doesn't use flakes to (re) build the nixos
   configuration. Therefore we add flake-compat to the flake to
   make it easier to reference from non-flake code

 - nix seems gets fussy about symlinks in this situation, so we
   expose the top level directory in an environment variable
   in the devShell, to be passed terraform

 - terraform then needs to pass this back to nix, which required
   some messing with the wrapper.nix used by corpix/nixos, and
   passing a specialArg into the system configuration build (can't
   use an ordinary module option, results in infrec)
tc424 force-pushed fj-act-nixos from b6276b3cf5
All checks were successful
/ local_build (push) Successful in 3m43s
to e04fb020bb
All checks were successful
/ local_build (push) Successful in 3m31s
2026-01-18 17:25:38 +00:00
Compare
tc424 requested review from tom 2026-01-18 17:27:23 +00:00
Owner

I think this makes sense, and I even almost follow it :)

I think this makes sense, and I even almost follow it :)
tc424 removed review request for tom 2026-01-18 20:50:29 +00:00
Author
Owner

I moved the main bit of this to a new branch & PR seeing you were already depending on it, I will go ahead and merge that one ..

I moved the main bit of this to a new branch & PR seeing you were already depending on it, I will go ahead and merge that one ..
tc424 force-pushed fj-act-nixos from e04fb020bb
All checks were successful
/ local_build (push) Successful in 3m31s
to b506d9bc8c
All checks were successful
/ local_build (push) Successful in 3m43s
2026-01-18 20:54:16 +00:00
Compare
tc424 changed title from Make tier0-nixos more easily buildable by CI to Workflow for host mode on nixos runner 2026-01-18 20:54:42 +00:00
All checks were successful
/ local_build (push) Successful in 3m43s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fj-act-nixos:fj-act-nixos
git switch fj-act-nixos

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff fj-act-nixos
git switch fj-act-nixos
git rebase master
git switch master
git merge --ff-only fj-act-nixos
git switch fj-act-nixos
git rebase master
git switch master
git merge --no-ff fj-act-nixos
git switch master
git merge --squash fj-act-nixos
git switch master
git merge --ff-only fj-act-nixos
git switch master
git merge fj-act-nixos
git push origin master
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
spoons.technology/scaleway-images!9
No description provided.