Since flakes are an experimental feature, you also need to add the following line to ~/.config/nix/nix.conf
:
experimental-features = nix-command flakes
or pass the flag --experimental-features 'nix-command flakes'
whenever you call the nix
command.
nix run github:plebhash/stratum jd-client