2020-08-26 06:13:05 +00:00
|
|
|
{
|
|
|
|
description = "Home Manager for Nix";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }: rec {
|
|
|
|
nixosModules.home-manager = import ./nixos;
|
|
|
|
|
2020-08-27 16:38:15 +00:00
|
|
|
darwinModules.home-manager = import ./nix-darwin;
|
|
|
|
|
2020-08-26 06:13:05 +00:00
|
|
|
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; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|