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

treewide: Refactor to per-project structure #185

Merged
merged 2 commits into from
Apr 16, 2024
Merged

treewide: Refactor to per-project structure #185

merged 2 commits into from
Apr 16, 2024

Conversation

lorenzleutgeb
Copy link
Member

@lorenzleutgeb lorenzleutgeb commented Apr 15, 2024

Resolves #74

Comments:

  • I decided to create lib.nix for definitions that are "generic". These started polluting flake.nix. If you oppose creating such a "utility" file or want it to be renamed, I'll happily do so.
  • IMO the non-exhaustiveness of README.md should not be a blocker for this PR. The changes I make are an improvement, and needed since the directory structure changes. We still have more to do, see Add contributor documentation #171. However, there are also PRs that depend on landing this, which are just as important, e.g. Static Site #169. I'd argue for merging this PR even if docs are not optimal, so that we can parallelize on Add contributor documentation #171 and Static Site #169.
  • Flattening of NixOS module names and NixOS configuration names occurs so that we are compatible with Flakes. I think that's not too bad.
  • Instead of having configs/all-configurations.nix we now wire them together in projects/*/default.nix.
  • Instead of having modules/all-modules.nix we now wire most of them together in projects/*/default.nix. There's one leftover module that I decided to directly add in flake.nix.
  • I attempted to use nixdoc compatible comments in lib.nix, but it turns out that alejandra (our code formatter) destroys them.

@lorenzleutgeb lorenzleutgeb force-pushed the metadata branch 3 times, most recently from baf7347 to 7c5457d Compare April 15, 2024 21:16
@lorenzleutgeb lorenzleutgeb marked this pull request as ready for review April 15, 2024 21:16
@lorenzleutgeb lorenzleutgeb force-pushed the metadata branch 3 times, most recently from bdf5691 to 3864fa8 Compare April 16, 2024 08:57
@lorenzleutgeb lorenzleutgeb mentioned this pull request Apr 16, 2024
@lorenzleutgeb lorenzleutgeb force-pushed the metadata branch 4 times, most recently from 20ef037 to 3e7c8ef Compare April 16, 2024 12:54
Copy link
Collaborator

@fricklerhandwerk fricklerhandwerk left a comment

Choose a reason for hiding this comment

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

Just a few fixups. Feel free to self-merge, with history rewritten if needed.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@lorenzleutgeb lorenzleutgeb merged commit 6473743 into main Apr 16, 2024
1 check passed
@lorenzleutgeb lorenzleutgeb deleted the metadata branch April 16, 2024 16:07
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.

Metadata
2 participants