Unify the overlay creation logic
This commit is contained in:
parent
6c4190296f
commit
90c7cb0d98
1 changed files with 11 additions and 11 deletions
22
flake.nix
22
flake.nix
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue