c0c0n3 / teadal.proto

Messing around with cloud infra for https://www.teadal.eu.
MIT License
4 stars 1 forks source link

Test NixOS deployment from GitHub #2

Open c0c0n3 opened 1 year ago

c0c0n3 commented 1 year ago

In principle we should be able to use nixos-rebuild with a Flake hosted on GitHub and targeting a remote box. For example, with the Qemu dev VM, this should work

nixos-rebuild switch \
    --flake 'github:c0c0n3/teadal.proto?dir=nix/nodes/devm#devm&rev=752045094b49fd868e285699cb40c7d74f822532' \
    --fast \
    --target-host root@localhost --build-host root@localhost

Test it though :-) Then add a note about it in the NixOS deployment doc.