Install (Linux, empfohlen)
curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install \
| sh -s -- --daemon
nix --version
Quelle: nixos.org/download.
Flakes aktivieren
# ~/.config/nix/nix.conf
experimental-features = nix-command flakes
Dev-Shell
cd groupdir-infra
nix develop
tofu version
just --list
Build (lokal prüfen)
nix build nixpkgs#hello
nix build .#nixosConfigurations.lab-gateway.config.system.build.toplevel
Begriffskette
- Nix: Paketmanager / Build-System
- Flake: Einstieg
flake.nix+ Lock - develop: Werkzeuge aus dem Flake in die Shell
- build: Output bauen, oft nach
./result