Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve flakes structure #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aldoborrero
Copy link

@aldoborrero aldoborrero commented Oct 17, 2024

Summary of Changes

This PR introduces the following changes to the project:

  • Introduce flake-compat and treefmt-nix as flake inputs
  • Migrate treefmt configuration to use treefmt-nix with a modern approach.
  • Replace legacy shell.nix with flake-compat version to avoid code duplication.
  • Replace legacy default.nix with flake-compat version to avoid code duplication (and migrate logic to package.nix).
  • Implement nix-direnv via .envrc.
  • Update .gitignore to exclude nix and direnv artifacts.

I'm happy to discuss more specifics or to change/adapt some assumptions.

- Introduction of flake-compat and treefmt-nix flake inputs
- Switched configuration of treemfmt to use treefmt-nix
- Removal of old shell.nix to use flake-compat version
- Addition of .gitignore exclusions for nix and direnv
- Addition of .envrc with nix-direnv
- Addition of package.nix and move logic of default.nix to it
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.

1 participant