···11# These are supported funding model platforms
22-32github: [vic] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
43patreon: # Replace with a single Patreon username
54open_collective: # Replace with a single Open Collective username
···11<!-- Badges -->
22+23<p align="right">
34 <a href="https://github.com/sponsors/vic"><img src="https://img.shields.io/badge/sponsor-vic-white?logo=githubsponsors&logoColor=white&labelColor=%23FF0000" alt="Sponsor Vic"/>
45 </a>
···317318This section outlines the recommended steps for adopting `flake-file` in your own repository.
3183193193201. **Prerequisite:** Ensure you have already adopted [flake-parts](https://flake.parts).
320320-2. **Add Inputs:** In your current `flake.nix`, add the following input:
321321+322322+1. **Add Inputs:** In your current `flake.nix`, add the following input:
321323322324 ```nix
323325 flake-file.url = "github:vic/flake-file";
324326 ```
325327326326-3. **Move Outputs:** Copy the contents of your `outputs` function into a file `./outputs.nix`:
328328+1. **Move Outputs:** Copy the contents of your `outputs` function into a file `./outputs.nix`:
327329328330 ```nix
329331 # outputs.nix -- this is the contents of your `outputs` function from the original flake.nix file.
···336338 }
337339 ```
338340339339-4. **Move Inputs:** Copy your current flake.nix file as a flake-parts module (e.g., `modules/inputs.nix`):
341341+1. **Move Inputs:** Copy your current flake.nix file as a flake-parts module (e.g., `modules/inputs.nix`):
340342341343> [!IMPORTANT]
342344> Make sure you `git add` so that new files are visible to Nix.
···360362```
3613633623645. **Backup:** Back up your flake.nix into flake.nix.bak before regenerating it.
363363-6. **Generate:** Execute `nix run .#write-flake` to generate flake.nix.
364364-7. **Verify:** Check flake.nix and if everything is okay, remove the backup file.
365365+1. **Generate:** Execute `nix run .#write-flake` to generate flake.nix.
366366+1. **Verify:** Check flake.nix and if everything is okay, remove the backup file.
365367366368You are done! Now you can split dependencies from `modules/inputs.nix` into other flake-part modules as you see fit:
367369···399401400402---
401403402402-Made with <3 by [@vic](https://x.com/oeiuwq)
404404+Made with \<3 by [@vic](https://x.com/oeiuwq)