Emacs spell checking on NixOS

How to enable spelling checking with Aspell on NixOS inside (Doom) Emacs.