Export configurations in home-manager in a flake

Hi all,

I’m trying to convert my NixOS configuration + home-manager configuration to flake-based.

Currently the nixflk project has a layout that work for both, but that requires me to put configurations in a single project.

I still want to keep the home-manager config separate, as it might be useful on some server with NixOS, where I don’t control the server config. How’d I export all my home-manager user profiles in flake.nix so that I can just include my home-manger as a flake in my NixOS config?

There is no standard I am aware of, but following the convention for nixos (nixosConfigurations, nixosModules), I use homeConfigurations and homeModules, so that a single flake can contain multiple user configurations and systems