Skip to content

Commit

Permalink
fix: allow importaing nixos channel other than nixpkgs
Browse files Browse the repository at this point in the history
authored by GTrunSec
  • Loading branch information
blaggacao committed Oct 29, 2022
1 parent 8895f90 commit 98214c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pasteurize.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
check = x: (l.isAttrs x) && (l.hasAttr "path" x);
};
description = "divnix/hive requires you to set the nixpkgs instance via 'config.bee.pkgs = inputs.nixos-22.05.legacyPackages;'";
apply = x: x.${config.bee.system};
apply = x:
if (l.hasAttr "${config.bee.system}" x)
then x.${config.bee.system}
else x;
};
};
};
Expand Down

0 comments on commit 98214c4

Please sign in to comment.