Remote mirrors
Remote mirroring allows you to synchronize a flake on MyNixOS with an external repository.
Remote mirror to GitHub
- Create repository on GitHub with the same name as the flake you wish to synchronize.
- Create a personal access token on GitHub with required repository access rights.
- Create a flake on MyNixOS.
- From the flake "Settings" menu, select "Add" in the "Remote mirrors" section, keep username and password empty, then enter the URL:
https://<your_access_token>@github.com/<github_user>/<github_project>.git
- Add some changes to your flake, then create a flake release.
After creating the flake release, the flake git repository should now automatically be mirrored to GitHub. Note that the GitHub synchronization is one-way, and will not retrieve changes from the GitHub repository.
MyNixOS uses a self-hosted Gitea instance to synchronize Git repositories.