home-manager/flake.nix
Thiago Kenji Okada 209566c752
flake: add extraSpecialArgs (#1790)
This allows flake user to pass extra arguments to all modules.

(cherry picked from commit cf5dad76c1)

Co-authored-by: mlatus <wqseleven@gmail.com>
2021-02-09 15:29:47 -05:00

25 lines
716 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, extraSpecialArgs ? { }
, pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
, check ? true }@args:
import ./modules {
inherit pkgs check extraSpecialArgs;
configuration = { ... }: {
imports = [ configuration ];
home = { inherit homeDirectory username; };
};
};
};
};
}