Skip to content

feat(prune-lock) Add flake-file.prune-lock.enable option. - #15

Merged
vic merged 1 commit into
mainfrom
prune-lock
Jul 16, 2025
Merged

vic merged 1 commit into
mainfrom
prune-lock

Conversation

@vic

@vic vic commented Jul 16, 2025

Copy link
Copy Markdown
Member

This allows processing the flake.lock file opt-in.

It is also generic and does not depend on allfollow.

But we provide an allfollow flakeModule and also included by default on dendritic.

Fixes #14

This allows processing the flake.lock file opt-in.

It is also generic and does not depend on allfollow.

But we provide an allfollow flakeModule and also included
by default on dendritic.
Copilot AI review requested due to automatic review settings July 16, 2025 22:53

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 introduces an opt-in prune-lock feature to prune or flatten flake.lock files and adds a standalone allfollow module for automatic flake.lock flattening.

  • Added a flake-file.prune-lock option (enable + command) and wired it into the write-flake workflow.
  • Introduced a new allfollow module and enabled it by default in the dendritic setup.
  • Removed legacy devshell and rust-overlay inputs from templates and updated the README with documentation for the new features.

Reviewed Changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
templates/dendritic/flake.nix Removed devshell & rust-overlay inputs
modules/write-flake.nix Added prune-lock shell application and replaced allfollow-run
modules/options.nix Defined prune-lock submodule option (enable + command)
modules/dendritic/devshell.nix Deleted unused devshell module
modules/dendritic.nix Removed devshell import
modules/default.nix Registered allfollow module under flakeModules
modules/allfollow.nix Simplified to a module adding the allfollow input + default prune-lock settings
dev/flake.nix Removed rust-overlay input block
README.md Documented prune-lock and allfollow modules
Comments suppressed due to low confidence (2)

modules/write-flake.nix:102

  • Removing nativeBuildInputs from the flake-formatted derivation means nixfmt-rfc-style is no longer available for formatting, which will likely break the format step. Consider restoring or adjusting build inputs so the formatter is present.
        ];

modules/allfollow.nix:6

  • The pkgs argument is not defined in the module header, yet it's referenced inside the command string (and so is pkgs.system). You should add pkgs (and possibly system) to the function parameters: e.g. { lib, inputs, pkgs, ... }:.
    pkgs: "${pkgs.lib.getExe inputs.allfollow.packages.${pkgs.system}.default} prune --pretty -o -";

@vic
vic merged commit c3aeb2b into main Jul 16, 2025
@vic
vic deleted the prune-lock branch July 16, 2025 22:56
@dtomvan

dtomvan commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Thanks!

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.

allfollow should be opt-in

3 participants