Install Nix, using determinate systems' installer:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
First time run:
nix run --extra-experimental-features "nix-command flakes"