readme add first after install steps
This commit is contained in:
@@ -21,6 +21,9 @@ nix-shell -p sops age age-plugin-yubikey pcsclite pcsc-tools ccid
|
||||
CCID="$(nix eval --raw nixpkgs#ccid.outPath)"
|
||||
```
|
||||
``` bash
|
||||
sudo mkdir -p /var/lib/pcsc/drivers/
|
||||
```
|
||||
``` bash
|
||||
sudo cp -a "$CCID/pcsc/drivers/ifd-ccid.bundle" /var/lib/pcsc/drivers/
|
||||
```
|
||||
``` bash
|
||||
@@ -70,15 +73,15 @@ age-plugin-yubikey --list
|
||||
Dann entsprechend:
|
||||
|
||||
```bash
|
||||
sudo env SOPS_AGE_KEY_FILE=/home/user/nixos-config/age/yubikey-14321697.txt /home/user/nixos-config/scripts/bootstrap-host.sh
|
||||
sudo env SOPS_AGE_KEY_FILE=./age/yubikey-14321697.txt ./scripts/bootstrap-host.sh
|
||||
```
|
||||
oder
|
||||
```bash
|
||||
sudo env SOPS_AGE_KEY_FILE=/home/user/nixos-config/age/yubikey-32464919.txt /home/user/nixos-config/scripts/bootstrap-host.sh
|
||||
sudo env SOPS_AGE_KEY_FILE=./age/yubikey-32464919.txt ./scripts/bootstrap-host.sh
|
||||
```
|
||||
oder für den Recovery-Key aus Bitwarden (Dieser muss zunächst exportiert werden und als .txt Datei gespeichert werden)
|
||||
```bash
|
||||
sudo env SOPS_AGE_KEY_FILE=/path/to/recovery-keyfile.txt /home/user/nixos-config/scripts/bootstrap-host.sh
|
||||
sudo env SOPS_AGE_KEY_FILE=/path/to/recovery-keyfile.txt ./scripts/bootstrap-host.sh
|
||||
```
|
||||
|
||||
### 6. NixOS installieren
|
||||
@@ -89,6 +92,24 @@ sudo nixos-install --flake /tmp/nixos-config#desktop
|
||||
sudo reboot
|
||||
```
|
||||
|
||||
### 7. Nach der Installation
|
||||
Melde dich als `user` an.
|
||||
|
||||
``` bash
|
||||
cd ~/nixos-config
|
||||
```
|
||||
Klone das Repo:
|
||||
``` bash
|
||||
git clone https://git.hausfalke.de/fe5hua/nixos-config .
|
||||
```
|
||||
Erstelle die lokale `.sops.yaml`:
|
||||
``` bash
|
||||
HOST_RECIPIENT="$(sudo age-keygen -y /persist/keys/host-age.key)"
|
||||
```
|
||||
``` bash
|
||||
sed "s|AGE_HOST_D|$HOST_RECIPIENT|g" .sops.yaml.template > .sops.yaml
|
||||
```
|
||||
|
||||
|
||||
## Probleme
|
||||
|
||||
|
||||
Reference in New Issue
Block a user