mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
add module to flake lib helper
This commit is contained in:
parent
ba6127d5e7
commit
3c94b8a4c4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue