nixos-configuration/README.md
2022-10-11 21:58:23 +00:00

28 lines
453 B
Markdown

## 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
```
$ nix repl
nix-repl> a=builtins.getFlake (toString ./.)
```
```
$ nix repl
nix-repl> :lf .#
```
## Import GPG public key
```
gpg --card-edit
gpg/card> fetch
```