home-manager/flake.nix
Roosembert Palacios 22f6736e62
flake: expose Home Manager lib
(cherry picked from commit 6dc8de259a)
2020-12-26 11:22:47 -08:00

25 lines
675 B
Nix

{
description = "Home Manager for Nix";
outputs = { self, nixpkgs }: rec {
nixosModules.home-manager = import ./nixos;
darwinModules.home-manager = import ./nix-darwin;
lib = {
hm = import ./modules/lib { lib = nixpkgs.lib; };
homeManagerConfiguration = { configuration, system, homeDirectory
, username
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
, check ? true }@args:
import ./modules {
inherit pkgs check;
configuration = { ... }: {
imports = [ configuration ];
home = { inherit homeDirectory username; };
};
};
};
};
}