srid / nixci

Define and build CI for Nix projects anywhere; superceded by Omnix https://omnix.page/om/ci.html
GNU Affero General Public License v3.0
108 stars 5 forks source link

Remote builds over SSH #85

Closed srid closed 2 weeks ago

srid commented 1 month ago
nixci build --on ssh://example

This should basically,

  1. nix copy the flake[^path] to example host
    • Make sure to nix copy dependent paths as well, such as those of --override-inputs
  2. Run nixci build on that flake, effectively, on the example host over SSH

https://x.com/sridca/status/1812150642691002395

[^path]: Path to the flake can be determined using:

    ❯ nix flake metadata --json | jq -r .path
    /nix/store/dpdavhf0wzzd36b5afv8ib1b8jhrdpc3-source
srid commented 1 month ago

To do (2), we need to copy the nixci flake itself, and then nix run it over SSH (example).

srid commented 2 weeks ago

Moved to https://github.com/juspay/omnix/issues/188