add module to flake lib helper

This commit is contained in:
Daylin Morgan 2024-12-12 14:46:53 -06:00
parent ba6127d5e7
commit 3c94b8a4c4
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -104,8 +104,10 @@ let
pkgsFromSystem = system: flake: inputs."${flake}".packages."${system}"; pkgsFromSystem = system: flake: inputs."${flake}".packages."${system}";
pkgFromSystem = system: flake: (pkgsFromSystem system flake).default; pkgFromSystem = system: flake: (pkgsFromSystem system flake).default;
overlayFrom = flake: inputs."${flake}".overlays.default; overlayFrom = flake: inputs."${flake}".overlays.default;
nixosModuleFrom = flake: inputs."${flake}".nixosModules.default;
flakeFromSystem = system: { flakeFromSystem = system: {
overlay = overlayFrom; overlay = overlayFrom;
module = nixosModuleFrom;
pkgs = pkgsFromSystem system; pkgs = pkgsFromSystem system;
pkg = pkgFromSystem system; pkg = pkgFromSystem system;
}; };