1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-22 23:51:39 +03:00

use realChannel instead

This commit is contained in:
GTrunSec 2022-08-02 22:37:51 -07:00
parent c8eb0a6388
commit 41f5b9f9c8
No known key found for this signature in database
GPG Key ID: 2368FAFA4ABDD2A0

View File

@ -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