2020-08-26 08:13:05 +02:00
|
|
|
{
|
|
|
|
description = "Home Manager for Nix";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }: rec {
|
|
|
|
nixosModules.home-manager = import ./nixos;
|
2021-03-17 02:19:01 +01:00
|
|
|
nixosModule = self.nixosModules.home-manager;
|
2020-08-26 08:13:05 +02:00
|
|
|
|
2020-08-27 18:38:15 +02:00
|
|
|
darwinModules.home-manager = import ./nix-darwin;
|
2021-03-17 02:19:01 +01:00
|
|
|
darwinModule = self.darwinModules.home-manager;
|
2020-08-27 18:38:15 +02:00
|
|
|
|
2020-08-26 08:13:05 +02:00
|
|
|
lib = {
|
2020-12-01 02:11:48 +01:00
|
|
|
hm = import ./modules/lib { lib = nixpkgs.lib; };
|
2020-08-26 08:13:05 +02:00
|
|
|
homeManagerConfiguration = { configuration, system, homeDirectory
|
2021-01-06 03:31:01 +01:00
|
|
|
, username, extraSpecialArgs ? { }
|
2020-08-26 08:13:05 +02:00
|
|
|
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
|
|
|
|
, check ? true }@args:
|
|
|
|
import ./modules {
|
2021-01-06 03:31:01 +01:00
|
|
|
inherit pkgs check extraSpecialArgs;
|
2020-08-26 08:13:05 +02:00
|
|
|
configuration = { ... }: {
|
|
|
|
imports = [ configuration ];
|
|
|
|
home = { inherit homeDirectory username; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|