Verified Commit d7d0163e authored by Matthias Adamczyk's avatar Matthias Adamczyk
Browse files

Update README.md

Add an info how to build remotely.
parent 983f68b3
Pipeline #360 passed with stages
in 1 minute and 6 seconds
......@@ -62,6 +62,13 @@ This will generate and run a deployment script, which does the following:
- You can read more about the possible modes and parameters in the [nixos-rebuild manual page](https://www.mankier.com/8/nixos-rebuild)
- Copy secrets from the local password store to `/var/src/secrets/` on the target
**But building takes sooo long >:(**
You can offload the build to a remote host, for example krul:
```
$ nix build --builders 'ssh://USERNAME@krul.finf.uni-hannover.de' -f . deploy.HOSTNAME
```
> If you need to set extra ssh parameters (eg. path to ssh-keyfile) you can specifiy them by exporting the `NIX_SSHOPTS` environment-variable with the needed ssh parameters.
> This is useful (and necessary) when you don’t have your ssh-key on a YubiKey.
> Example: `export NIX_SSHOPTS="-i ~/.ssh/id_rsa4096"`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment