Nixos-Configuration/modules/flake/packages.nix
Jermeiah S 57f4448826
now exposes package located inside overlays.default
todo: add filter based on meta.platforms
2025-06-14 10:25:36 -04:00

24 lines
534 B
Nix

{ inputs, ... }:
{
perSystem =
{
system,
...
}:
let
overlay = inputs.self.overlays.default;
# Apply the overlay to nixpkgs
customPkgs = import inputs.nixpkgs {
inherit system;
overlays = [ overlay ];
};
# Automatically extract only the packages added by the overlay
# You could also list them manually
generatedPackages = builtins.intersectAttrs (overlay customPkgs customPkgs) customPkgs;
in
{
packages = generatedPackages;
};
}