Skip to content

ec: init module#8800

Draft
kpbaks wants to merge 1 commit intonix-community:masterfrom
kpbaks:module/programs/ec/init
Draft

ec: init module#8800
kpbaks wants to merge 1 commit intonix-community:masterfrom
kpbaks:module/programs/ec/init

Conversation

@kpbaks
Copy link
Contributor

@kpbaks kpbaks commented Feb 24, 2026

Description

Adds Home Manager module for ec, a 3-way terminal native Git merge conflict resolver.

The module supports:

  • Git integration by configuring ec as a mergetool.

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted nixf-diagnose --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

@kpbaks
Copy link
Contributor Author

kpbaks commented Feb 24, 2026

Not quite ready yet. The flake.lock file need to be updated to contain the ecpackage. Don't know if I can add the update to flake.lock with nix flake lock as part of this PR.

home.packages = [ cfg.package ];

programs = {
git = {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be gates behind an option, see #8794 as an example of making that change in the mergiraf module.

Copy link
Contributor Author

@kpbaks kpbaks Feb 27, 2026

Choose a reason for hiding this comment

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

I have gated the git config behind a enableGitIntegration option

@kpbaks kpbaks force-pushed the module/programs/ec/init branch from b1c18bc to e640f9e Compare February 27, 2026 18:31
Adds Home Manager module for ec, a 3-way terminal native Git merge conflict resolver.

The module supports:
- Git integration by configuring ec as a mergetool.
@kpbaks kpbaks force-pushed the module/programs/ec/init branch from e640f9e to fec15f1 Compare February 27, 2026 18:35
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