mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 22:50:39 +00:00
6cf6b587b5
No flake.lock is added because the only input (nixpkgs) will almost always be overridden, and currently Home Manager's testing and verification is not flake based. PR #1455
21 lines
564 B
Nix
21 lines
564 B
Nix
{
|
|
description = "Home Manager for Nix";
|
|
|
|
outputs = { self, nixpkgs }: rec {
|
|
nixosModules.home-manager = import ./nixos;
|
|
|
|
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; };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|