33 lines
699 B
Markdown
33 lines
699 B
Markdown
### 0. Temporäre Shell mit Git
|
|
|
|
```bash
|
|
nix-shell -p git
|
|
```
|
|
|
|
### 1. Repository klonen
|
|
|
|
```bash
|
|
git clone https://gitea.timvandenboom.eth64.de/nils/nixos ~/nixos
|
|
cd ~/nixos
|
|
|
|
```
|
|
|
|
### 2. Symlink erstellen
|
|
|
|
NixOS erwartet seine Konfiguration standardmäßig unter `/etc/nixos`. Wir verlinken unser lokales Verzeichnis dorthin:
|
|
|
|
```bash
|
|
sudo ln -s /home/nils/nixos /etc/nixos
|
|
|
|
```
|
|
|
|
### 3. Konfiguration anwenden
|
|
|
|
Verwende für normale Änderungen `switch`. Wenn du jedoch **Kernel-Parameter** (wie für Hibernate) oder den **Bootloader** änderst, ist der `boot`-Befehl sicherer:
|
|
|
|
```bash
|
|
# Empfohlen nach Änderungen an der hibernation.nix oder boot.nix:
|
|
sudo nixos-rebuild boot --flake .#nixos
|
|
|
|
```
|