synix/docs/getting-started/create-nix-config.md
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

783 B

Create your own nix-config flake

Create an empty directory and apply a nix-config template to it:

mkdir -p ~/.config/nixos
cd ~/.config/nixos
nix flake init -t "git+https://git.sid.ovh/sid/synix#templates.TEMPLATE"

Available templates are:

  • hetzner-amd
  • hyprland
  • pi4
  • server
  • vm-uefi

Note: You do not have to use ~/.config/nixos, but configuration related scripts in this repository will use this directory as the default nix-config flake directory.

Alternatively, use this flake's create script:

nix run "git+https://git.sid.ovh/sid/synix#create" -- -t TEMPLATE -u YOUR_USER -h YOUR_HOSTNAME

Check:

nix run "git+https://git.sid.ovh/sid/synix#create" -- --help