Repository navigation
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates flake inputs across the project to leverage Nix's follows feature, preventing dependency duplication by ensuring multiple inputs share the same nixpkgs version. The changes also reorganize module imports in the dendritic template.
- Adds
followsdirectives to input declarations to deduplicate nixpkgs dependencies - Relocates flake-file module imports from default.nix to basic.nix in dendritic modules
- Adds new
deninput to the dendritic template
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| templates/dendritic/flake.nix | Adds den as a new input dependency |
| modules/prune-lock/nix-auto-follow.nix | Restructures input to use follows for nixpkgs deduplication |
| modules/dendritic/formatter.nix | Adds nixpkgs follows directive to treefmt-nix input |
| modules/dendritic/dendritic.nix | Adds nixpkgs-lib follows directive to flake-parts input |
| modules/dendritic/default.nix | Removes flake-file module imports and inputs parameter |
| modules/dendritic/basic.nix | Adds flake-file module imports previously in default.nix |
| dev/modules/devshell.nix | Restructures devshell input to use follows for nixpkgs |
| dev/flake.nix | Adds follows directives to multiple inputs for dependency deduplication |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -1,9 +1,6 @@ | |||
| { inputs, ... }: | |||
| { ... }: | |||
There was a problem hiding this comment.
The inputs parameter was removed from the function signature, but this module no longer imports the flake-file modules that were previously used. Verify that modules importing this file don't depend on those flake-file modules being available through this import, as they have been moved to basic.nix.
| inputs = { | ||
| nixpkgs = { | ||
| follows = "nixpkgs"; | ||
| }; | ||
| }; | ||
| url = "github:numtide/devshell"; |
There was a problem hiding this comment.
[nitpick] The inputs attribute is positioned before url, but Nix flake inputs conventionally place url first for better readability. Consider reordering to match the pattern used in nix-auto-follow and treefmt-nix later in this file.
| inputs = { | |
| nixpkgs = { | |
| follows = "nixpkgs"; | |
| }; | |
| }; | |
| url = "github:numtide/devshell"; | |
| url = "github:numtide/devshell"; | |
| inputs = { | |
| nixpkgs = { | |
| follows = "nixpkgs"; | |
| }; | |
| }; |
| inputs = { | ||
| nixpkgs-lib = { | ||
| follows = "nixpkgs-lib"; | ||
| }; | ||
| }; | ||
| url = "github:hercules-ci/flake-parts"; |
There was a problem hiding this comment.
[nitpick] The inputs attribute is positioned before url, but Nix flake inputs conventionally place url first for better readability. Consider reordering to match the pattern used in nix-auto-follow and treefmt-nix later in this file.
No description provided.