ci: evaluate NixOS in the job, build on the server
The first run failed with "home directory /homeless-shelter exists": job containers are unprivileged, Nix cannot sandbox builds in them, and unsandboxed builds trip over each other's leftovers. Evaluate the system in the job instead, which still catches broken options before main, and let nixos-rebuild build on the target host, where the Nix daemon has a proper sandbox. Assisted-by: Claude:fable-5-2
This commit is contained in:
parent
b7c203814e
commit
0b331bc5f1
3 changed files with 11 additions and 8 deletions
|
|
@ -20,8 +20,8 @@ Docker-compatible socket, which the CI runner uses to start jobs.
|
|||
|
||||
## Changing something
|
||||
|
||||
Edit, push a branch (CI builds the system), merge to `main` (CI
|
||||
deploys). By hand, over WireGuard:
|
||||
Edit, push a branch (CI evaluates the system), merge to `main` (CI
|
||||
builds it on the server and switches to it). By hand, over WireGuard:
|
||||
|
||||
```sh
|
||||
nixos-rebuild switch --flake .#asxpio-services --target-host root@10.20.0.20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue