Does anyone know how to enable adguardhome in NixOS?

I am trying to run adguardhome in NixOS but when I try it to run adguardhome from the terminal it says it cannot create DNS data because Nix is a read only file system.