flake: extend custom lib with home-manager lib for standalone home-manager builds

sh-initrd-on-root
Zynh Ludwig 2024-07-25 15:19:37 -07:00
parent 10542eae9d
commit 3f6f73b74a
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ rec {
name = "${user}${hostStr}"; name = "${user}${hostStr}";
value = inputs.home-manager.lib.homeManagerConfiguration { value = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."${system}"; pkgs = nixpkgs.legacyPackages."${system}";
extraSpecialArgs = { inherit inputs lib; }; extraSpecialArgs = {
inherit inputs;
lib = lib.extend (_: _: inputs.home-manager.lib);
};
modules = [ modules = [
../hosts/${configHost}/home.nix ../hosts/${configHost}/home.nix