HHow to alter ~/.nix-profile/etc/sane.dll.conf list

How to run Xsane with a hp printer/scanner whether I can’t add ‘hpaio’ within the ~/.nix-profile/etc/sane.dll.conf list ? It’s a read-only file system.

Thank you

Nixos 21.05 (Lenovo ideapad 100)

I think sane config is managed by nixos modules.
Have you tried setting these options in your configuration.nix?

hardware.sane.enable
hardware.sane.extraBackends

First. I am sorry to answer you so late.
Thanks you, that is the good way to make Xsane to work properly. Next, I had to reinstall Xsane .
Earlier, I faced a such issue with Pinentry, then solved it using the declarative package management.