From 98214c4de44df954b4e3001771976a0285f5749c Mon Sep 17 00:00:00 2001 From: David Arnold Date: Sat, 29 Oct 2022 11:19:57 -0500 Subject: [PATCH] fix: allow importaing nixos channel other than nixpkgs authored by GTrunSec --- pasteurize.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pasteurize.nix b/pasteurize.nix index cd02155..8a81d28 100644 --- a/pasteurize.nix +++ b/pasteurize.nix @@ -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; }; }; };