dotfiles/nixos/home-manager/lib.nix
2020-12-26 23:58:39 +01:00

16 lines
326 B
Nix

inputs: { lib, system }: {
halfCallFlake = flakeSrc:
let
flake = import (flakeSrc + "/outputs.nix");
outputs = flake ( inputs // { self = outputs; });
in
outputs;
getLegacyPkgs =
config:
pkgs:
lib.mapAttrs
(_: value: import "${value}" { inherit system config; })
pkgs;
}