feat(flake): add packages and overlays
This commit is contained in:
parent
bd88d8382c
commit
a2055ecc9c
1 changed files with 18 additions and 1 deletions
19
flake.nix
19
flake.nix
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue