Add instructions how to install a new host

This commit is contained in:
Jakob Lechner 2022-10-11 21:45:11 +00:00
parent 7ae83a57c6
commit bc198b7f3f
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -1,3 +1,10 @@
## Install a new host
This installs nixos on host `somehost`:
```bash
nix-shell -p nixUnstable --run 'nixos-install --flake https://gitlab.jalr.de/jalr/nixos-configuration#somehost --no-channel-copy'
```
## nix repl
start an interactive environment for evaluating Nix expressions
@ -11,6 +18,7 @@ nix-repl> a=builtins.getFlake (toString ./.)
$ nix repl
nix-repl> :lf .#
```
## Import GPG public key