Alternative would be making the directory owned and writable by your user.
Or even moving it out of /etc/nixos altogether:
/etc/nixos