dotfiles/nixos/home-manager/lib.nix

16 lines
359 B
Nix
Raw Normal View History

inputs: { lib, system }: {
halfCallFlake = flakeSrc:
let
2021-01-18 08:58:49 +01:00
flake = import (flakeSrc + "/flake.nix");
outputs = flake.outputs ( inputs // { self = outputs; });
in
2021-01-18 08:58:49 +01:00
outputs.defaultPackage."${system}";
getLegacyPkgs =
config:
pkgs:
lib.mapAttrs
(_: value: import "${value}" { inherit system config; })
pkgs;
}