refactor: remove rec keyword across codebase

Replace rec keyword with modern Nix patterns:
- Use explicit let...in bindings with inherit statements
- Use fix for recursive package bindings in package/default.nix
- This improves maintainability and follows idiomatic Nix patterns

Files modified:
- snowfall-lib/flake/default.nix
- snowfall-lib/fp/default.nix
- snowfall-lib/home/default.nix
- snowfall-lib/system/default.nix
- snowfall-lib/package/default.nix
This commit is contained in:
anntnzrb
2025-10-08 23:11:33 -05:00
parent 973b06a645
commit cedfe30aab
5 changed files with 93 additions and 51 deletions

View File

@@ -18,8 +18,8 @@ let
traceVal
;
in
rec {
flake = rec {
let
flake = let
## Remove the `self` attribute from an attribute set.
## Example Usage:
## ```nix
@@ -43,6 +43,8 @@ rec {
## ```
#@ Attrs -> Attrs
without-src = flake-inputs: builtins.removeAttrs flake-inputs [ "src" ];
in {
inherit without-self without-src;
## Remove the `src` and `self` attributes from an attribute set.
## Example Usage:
@@ -248,4 +250,7 @@ rec {
}) (builtins.attrNames flake-outputs.pkgs)
));
};
in
{
inherit flake mkFlake;
}