dotfiles/nixos/home-manager/lib.nix
2021-01-18 08:58:49 +01:00

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;
}