When using any nix command, add the following command-line options:
nix
--experimental-features 'nix-command flakes'