feat(flake): add packages and overlays

This commit is contained in:
Moritz Böhme 2023-05-12 09:45:47 +02:00
parent bd88d8382c
commit a2055ecc9c

View file

@ -161,7 +161,7 @@
with lib; { with lib; {
inherit lib; inherit lib;
pkgs = genAttrs systems pkgsFor; pkgs = forEachSystem pkgsFor;
# ╔══════════════════════════════════════════════════════════╗ # ╔══════════════════════════════════════════════════════════╗
# ║ NixOS Configurations ║ # ║ NixOS Configurations ║
@ -194,5 +194,22 @@
checks = forEachSystem (system: { checks = forEachSystem (system: {
pre-commit-check = pre-commit-check system; pre-commit-check = pre-commit-check system;
}); });
packages = forEachSystem (system:
let
pkgs = pkgsFor system;
in
filterAttrs (_: isDerivation)
(overlay pkgs pkgs)
);
overlays =
let
overlayNames = attrNames (overlay null null);
mkOverlay = name: final: prev: (overlay final prev).${name};
in
(genAttrs overlayNames mkOverlay) // {
default = overlay;
};
}; };
} }