1
1
mirror of https://github.com/divnix/digga.git synced 2024-09-11 23:17:15 +03:00

get channel from channels

This commit is contained in:
GTrunSec 2022-08-03 15:29:31 -07:00
parent 24cb8eb86d
commit 01924327b0
No known key found for this signature in database
GPG Key ID: 2368FAFA4ABDD2A0

View File

@ -43,9 +43,8 @@ let
unifyOverlays = channels:
let
getChannel = inputs."${channelName}".legacyPackages."${system}";
system = config.nixos.hostDefaults.system;
channelName = config.nixos.hostDefaults.channelName;
getChannel = inputs."${channelName}".legacyPackages.x86_64-linux;
channelName = builtins.elemAt (builtins.attrNames channels) 0;
in
map (o: if builtins.isFunction (o getChannel getChannel) then o channels else o);