Table of Contents
All commands are prefixed by the hostname, allowing to handle multiple hosts.
root
pool after boot $ nix run .#myskarabox-unlock
The connection will then disconnect automatically with no message. This is normal behavior.
$ nix run .#myskarabox-ssh
$ nix run .#myskarabox-ssh sudo reboot
You will then be required to decrypt the hard drives upon reboot as explained above.
Modify the ./configuration.nix file then run one of the following snippets:
To deploy with deploy-rs:
$ nix run .#deploy-rs
To deploy with colmena:
$ nix run .#colmena apply
Specific options for deploy-rs or colmena can be added by appending a double dash followed by the arguments, like so:
$ nix run .#colmena apply -- --on myskarabox
$ nix flake update
$ nix run .#deploy-rs
To pin Skarabox to the latest release, edit the flake.nix
and replace ?ref=<oldversion>
with ?ref=1.0.1
,
then run:
$ nix flake update skarabox
$ nix run .#sops ./myskarabox/secrets.yaml
$ ssh-keygen -f ./myskarabox/host_key
$ nix run .#add-sops-cfg -- -o .sops.yaml alias myskarabox $(ssh-to-age -i ./myskarabox/host_key.pub)
$ nix run .#deploy-rs
$ nix run .#baryum-gen-knownhosts-file