Skip to content

update inputs - #37

Merged
vic merged 1 commit into
mainfrom
update
Oct 27, 2025
Merged

vic merged 1 commit into
mainfrom
update

Conversation

@vic

@vic vic commented Oct 27, 2025

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings October 27, 2025 02:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 follows directives to input declarations to deduplicate nixpkgs dependencies
  • Relocates flake-file module imports from default.nix to basic.nix in dendritic modules
  • Adds new den input 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, ... }:
{ ... }:

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
Comment thread dev/flake.nix
Comment on lines +12 to 17
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
url = "github:numtide/devshell";

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Suggested change
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
url = "github:numtide/devshell";
url = "github:numtide/devshell";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};

Copilot uses AI. Check for mistakes.
Comment thread dev/flake.nix
Comment on lines +26 to 31
inputs = {
nixpkgs-lib = {
follows = "nixpkgs-lib";
};
};
url = "github:hercules-ci/flake-parts";

Copilot AI Oct 27, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Copilot uses AI. Check for mistakes.
@vic
vic merged commit 2ea33b2 into main Oct 27, 2025
@vic
vic deleted the update branch October 27, 2025 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants