mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
fix: expose activation packages instead of configs in packages output
`nix flake check` requires all `packages.<system>.*` to be derivations.
The previous implementation exposed full home-manager configurations (attrsets)
which caused validation to fail.
Now extracting `.activationPackage` from each home configuration to satisfy
the flake schema requirement.
Fixes CI failure introduced in 012761f.
This commit is contained in:
@@ -226,7 +226,7 @@ let
|
||||
value = flake-outputs.packages.${system} // {
|
||||
homeConfigurations = pipe homes [
|
||||
(filterAttrs (_: home: home.system == system))
|
||||
(mapAttrs (home-name: _: flake-outputs.homeConfigurations.${home-name}))
|
||||
(mapAttrs (home-name: _: flake-outputs.homeConfigurations.${home-name}.activationPackage))
|
||||
(mapAttrs' (
|
||||
name: value:
|
||||
nameValuePair (if hasSuffix "@${system}" name then removeSuffix "@${system}" name else name) value
|
||||
|
||||
Reference in New Issue
Block a user