35 lines
572 B
Markdown
35 lines
572 B
Markdown
# Installing a fresh NixOS
|
|
|
|
Add the new host to https://git.cluster.gay/hans/nix
|
|
Boot into the nixos minimal install iso
|
|
Plug the yubikey with gpg key on it into the machine
|
|
|
|
Now do the following:
|
|
|
|
```bash
|
|
sudo -i
|
|
rfkill unblock 0
|
|
rfkill unblock 1
|
|
...
|
|
systemctl start wpa_supplicant
|
|
wpa_cli
|
|
|
|
```
|
|
And then:
|
|
|
|
```
|
|
> add_network
|
|
0
|
|
> set_network 0 ssid "forest"
|
|
OK
|
|
> set_network 0 psk "ki*****"
|
|
OK
|
|
> set_network 0 key_mgmt WPA-PSK
|
|
OK
|
|
> enable_network 0
|
|
OK
|
|
quit
|
|
nix-shell -E "import (builtins.fetchurl https://git.cluster.gay/hans/nixos-install/raw/branch/main/shell.nix)"
|
|
```
|
|
|