Skip to content

Commit

Permalink
fix(pops.hive): meta check
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Apr 26, 2024
1 parent 6707bdc commit 3a2a6f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hive/collectors/walk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let
hostName: hostConfig:
pipe hostConfig (
l.optionals
(hostConfig ? ${renamer} || (hostConfig ? meta && hostConfig.meta.${renamer}))
(hostConfig ? ${renamer} || (hostConfig ? meta && hostConfig.meta ? ${renamer}))
(
[
(hostConfig: hostConfig.${renamer} or hostConfig.meta.${renamer})
Expand All @@ -28,7 +28,7 @@ let
++ extraPipe
)
++ l.optionals (
!hostConfig ? ${renamer} && !(hostConfig ? meta && hostConfig.meta.${renamer})
!hostConfig ? ${renamer} && !(hostConfig ? meta && hostConfig.meta ? ${renamer})
) [ (_: { }) ]
)
) hosts;
Expand Down
2 changes: 1 addition & 1 deletion src/pops/hive.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ in

pops = { };
exports = {
darwinConfiguraitons = root.hive.collectors.darwinConfigurations final.darwinConfigurationRenamer hostsArgs;
darwinConfigurations = root.hive.collectors.darwinConfigurations final.darwinConfigurationRenamer hostsArgs;

colmenaHive = root.hive.collectors.colmenaConfigurations final.colmenaConfigurationRenamer hostsArgs;

Expand Down
2 changes: 1 addition & 1 deletion tests/hive/expr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let
inherit (omnibus.flake.inputs) colmena nixpkgs;
}).setNixosConfigurationsRenamer
"asd";
inherit (hivePop.exports) darwinConfiguraitons colmenaHive;
inherit (hivePop.exports) darwinConfigurations colmenaHive;
in
{
# inherit hivePop;
Expand Down

0 comments on commit 3a2a6f7

Please sign in to comment.