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 =
final: prev: (
{
linuxPackages_latest.xone = packageDefinitions.xone final;
} //
(lib.attrsets.concatMapAttrs (
name: package:
if name == "xone"
then {}
else {
${name} = package final;
})
packageDefinitions));
lib.attrsets.concatMapAttrs (
name: packageDefinition:
let
package = final.callPackage packageDefinition { };
in
if name == "xone"
then
{ linuxPackages_latest.xone = package; }
else
{ ${name} = package; })
packageDefinitions);
nixosConfigurations =
builtins.mapAttrs (