mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 00:55:58 -05:00
e0be5043e5f6aa9dfa1992936c2b8d8f91ecf86f
Extract module creation pattern into create-module-set helper to eliminate triplication. Refactor get-libs to use pipe with filterAttrs and mapAttrs instead of manual foldl accumulator. Pipeline home configurations transformation. Changes: - Added pipe to imports - Added create-module-set helper for module creation - Refactored nixos/darwin/home module creation to use helper - Refactored get-libs using pipe (11 lines → 5 lines, 55% reduction) - Refactored homeConfigurations using pipe (3 bindings → 1 pipeline) Impact: - Lines: +17 -28 (net: -11) - Eliminated module creation triplication (15 lines → 9 lines) - Much clearer get-libs logic (filterAttrs → mapAttrs) - Better data flow in homeConfigurations - Single source of truth for module creation Testing: nix flake check ✓
Snowfall Lib
Unified configuration for systems, packages, modules, shells, templates, and more with Nix Flakes.
Snowfall Lib is built on top of flake-utils-plus.
Get Started
See the Snowfall Lib Quickstart guide to start using Snowfall Lib.
Reference
Looking for Snowfall Lib documentation? See the Snowfall Lib Reference.
Description
Languages
Nix
100%