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 =
|
||||
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 (
|
||||
|
|
Loading…
Reference in a new issue