Unify the overlay creation logic

This commit is contained in:
Manuel Thalmann 2024-05-11 01:07:26 +02:00
parent 6c4190296f
commit 90c7cb0d98

View file

@ -131,17 +131,17 @@
) // { ) // {
overlays.default = overlays.default =
final: prev: ( final: prev: (
{ lib.attrsets.concatMapAttrs (
linuxPackages_latest.xone = packageDefinitions.xone final; name: packageDefinition:
} // let
(lib.attrsets.concatMapAttrs ( package = final.callPackage packageDefinition { };
name: package: in
if name == "xone" if name == "xone"
then {} then
else { { linuxPackages_latest.xone = package; }
${name} = package final; else
}) { ${name} = package; })
packageDefinitions)); packageDefinitions);
nixosConfigurations = nixosConfigurations =
builtins.mapAttrs ( builtins.mapAttrs (