Repository navigation
Add nix-auto-follow as an allfollow alternative - #24
Conversation
|
Looks good, could you rebase and fix conflicts ? Looks like it works the first time because it uses nixpkgs stable, but after it changes its own nixpkgs follow to the root nixpkgs (unstabe) it no longer works. Can you add the error you get to this issue? |
b6f1463 to
70cb11b
Compare
This adds nix-auto-follow as a flattening mechanism which can be activated with a provided module. Closes denful#19.
1d67626 to
f48e5e3
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for nix-auto-follow as an alternative flake lock flattening mechanism alongside the existing allfollow option. The implementation follows a similar pattern to the existing allfollow module.
Key changes:
- Added a new nix-auto-follow module that integrates the nix-auto-follow tool
- Exported the new module in the default module exports
- Updated documentation to reflect both flattening options
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| modules/prune-lock/nix-auto-follow.nix | New module implementing nix-auto-follow integration with flake-file's prune-lock system |
| modules/default.nix | Exports the new nix-auto-follow module alongside existing modules |
| README.md | Documents the new nix-auto-follow option and restructures flattening mechanism documentation |
|
So I've rebased onto main, reworded my initial commit (which now closes the issue) and changed the relevant parts of the documentation (Where I hope I didn't miss anything). Is there anything else which needs to be done? |
|
Oh I just saw the copilot review errors will fix that when I'm back from work. |
This also fixes broken link to the allfollow module.
f48e5e3 to
763aa55
Compare
|
Ok, I fixed the broken path issue. |
|
Looks awesome! Thank you very much! I will merge it now. |
This adds a module which enables nix-auto-follow to be used as an alternative to allfollow.
It is currently working but for now it's just a straight copy of the allfollow module with minimum needed adjustments to make it work.
I do get an error if I try to run
write-flakea second time which I don't understand:I also still need to update the documentation to reflect this change.
Also I'm unsure if there needs to be some kind of mechanism that prevents someone from importing multiple flake formatting modules.
Let me know if there are any other things that need to be considered before the PR can be merged.