mirror of
https://github.com/nix-community/home-manager
synced 2024-10-31 16:29:44 +01:00
23 lines
619 B
Nix
23 lines
619 B
Nix
{
|
|
description = "Home Manager for Nix";
|
|
|
|
outputs = { self, nixpkgs }: rec {
|
|
nixosModules.home-manager = import ./nixos;
|
|
|
|
darwinModules.home-manager = import ./nix-darwin;
|
|
|
|
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; };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|