diff --git a/src/mkFlake/fup-adapter.nix b/src/mkFlake/fup-adapter.nix index 19f76eb..eeebdd9 100644 --- a/src/mkFlake/fup-adapter.nix +++ b/src/mkFlake/fup-adapter.nix @@ -41,7 +41,13 @@ let }) ]; - unifyOverlays = channels: map (o: if builtins.isFunction (o null null) then o channels else o); + unifyOverlays = channels: + let + getChannel = inputs."${channelName}".legacyPackages."${system}"; + system = config.nixos.hostDefaults.system; + channelName = config.nixos.hostDefaults.channelName; + in + map (o: if builtins.isFunction (o getChannel getChannel) then o channels else o); stripChannel = channel: removeAttrs channel [ # arguments in our channels api that shouldn't be passed to fup