Initial installation
A DNF network is set up step by step, and you can stop at any stage: a single workstation is enough to get started.
The path
Section titled “The path”- A workstation : the administrator’s machine (this page).
- A gateway : create a zone and connect other machines to it.
- Coordination : connect zones via VPN (tailnet).
Create the project
Section titled “Create the project”The project starts from the dnf-boilerplate template: a ready-made structure and a commented etc/config.yaml to fill in.
-
Create the repository
From the dnf-boilerplate 🡕 template (“Use this template” button), or by cloning.
-
Bootstrap the framework
Fenêtre de terminal nix run github:darkone-linux/darkone-nixos-framework#initnix develop github:darkone-linux/darkone-nixos-framework -
Initialize secrets
Fenêtre de terminal just configure-admin-host
Describe the configuration
Section titled “Describe the configuration”Everything is declared in etc/config.yaml (network, zones, users, hosts). For a first workstation, one user and one host are enough:
users: alice: uid: 1000 name: "Alice" profile: "nix-admin" groups: ["global"]
hosts: - hostname: "poste" name: "Poste de l'administrateur" profile: "desktop" users: ["alice"] disko: profile: "btrfs-1-disk" devices: main: "/dev/nvme0n1"Then regenerate and verify:
just generate # produces var/generated/*.nix from etc/config.yamljust check-flake # nix flake checkInstall the first workstation
Section titled “Install the first workstation”The installation burns an image, boots the machine from it, then applies the complete system.
-
Generate the image
Fenêtre de terminal just build-iso -
Boot the machine
Burn the image to a USB drive, connect the computer to the network, boot from the drive, then note its IP address.
-
Apply the system
Fenêtre de terminal # just full-install <host> <user> <ip>just full-install poste nix 10.0.0.50 -
Reboot without the drive.