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:
parent
24cb8eb86d
commit
01924327b0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user