anntnzrb e0be5043e5 refactor: eliminate DRY violations and use pipe in flake
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 ✓
2025-10-09 00:00:19 -05:00
2025-10-08 21:56:09 -05:00
2022-09-07 17:06:33 -07:00
2023-02-13 00:12:43 -08:00
2024-05-07 17:33:24 +01:00

Snowfall Lib

Nix Flakes Ready Linux Ready macOS Ready Generators Ready

 

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
No description provided
Readme Apache-2.0 334 KiB
Languages
Nix 100%