Cloning emacs config

Hello, I’m using Arch and I’m considering switching to NixOs very soon. I’m trying to set up a VM with NixOs and I have some questions on emacs. I have my config.org file that is on a gitlab repo. I would like to clone it and deploy it from my configuration.nix file. I have seriously no clue on how to achieve that so if you have any documentation on that I would be very grateful !
Thank’s