First, install nix
Then:
# warlock's first nix config
mkdir -p ~/.config/nix/
echo -e 'max-jobs = auto\ntarball-ttl = 0\nexperimental-features = nix-command flakes' >>~/.config/nix/nix.conf
# add current user as trusted
echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon
git clone https://github.com/wuz/prst.git ~/.config/nixpkgs
# change the name of the system configuration from `prst` to your hostname in flake.nix
nix build .\#darwinConfigurations.$(hostname).system --extra-experimental-features nix-command --extra-experimental-features flakes --impure
./result/sw/bin/darwin-rebuild switch --flake . --impure