mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 10:36:12 +01:00
16 lines
359 B
Nix
16 lines
359 B
Nix
inputs: { lib, system }: {
|
|
halfCallFlake = flakeSrc:
|
|
let
|
|
flake = import (flakeSrc + "/flake.nix");
|
|
outputs = flake.outputs ( inputs // { self = outputs; });
|
|
in
|
|
outputs.defaultPackage."${system}";
|
|
|
|
getLegacyPkgs =
|
|
config:
|
|
pkgs:
|
|
lib.mapAttrs
|
|
(_: value: import "${value}" { inherit system config; })
|
|
pkgs;
|
|
}
|