Pipe Operator Refactor #148

Merged
kruziikrel13 merged 15 commits from lib-rewrite into master 2026-08-14 00:17:33 +10:00
Owner

Complete rewrite of lib, was able to drop attrs entirely and made extensive use of the pipe-operators experimental feature for clearer and more concise code.

  • dropped attrs lib
  • recursive imports make use of listFilesRecursive
    • Has been a drop in filter quality, but I don't think it has any meaningful impact on build results.
  • including a mapPackages function and instantiates packages properly using pkgs.callPackage v {}
  • reduced pkgs instantiations and made their presence clearer.
    • have reduced pkgs instantiations down to 2
      1. Packages. Formatters. DevShells
      2. NixosConfigurations

I'll have to just manually keep them in sync.

All in all, a fairly big reduction in the code base size for very similar behaviour! Yay me!

Complete rewrite of lib, was able to drop attrs entirely and made extensive use of the `pipe-operators` experimental feature for clearer and more concise code. - dropped attrs lib - recursive imports make use of listFilesRecursive - Has been a drop in filter quality, but I don't think it has any meaningful impact on build results. - including a mapPackages function and instantiates packages properly using `pkgs.callPackage v {}` - reduced pkgs instantiations and made their presence clearer. - have reduced pkgs instantiations down to 2 1. Packages. Formatters. DevShells 2. NixosConfigurations > I'll have to just manually keep them in sync. All in all, a fairly big reduction in the code base size for very similar behaviour! Yay me!
Sign in to join this conversation.
No description provided.