I’m using home-manager home.nix with the boilerplate flake.nix and I want to manage a single home-manager repo across machines (work, home, servers etc). If I break my home.nix into modular files, is there a way that home-manager can detect which host I’m on and import the appropriate home-work.nix or home-person.nix file?
I’m assuming flakes could do it but I’m not sure how the flake.lock file would work.
There’s a lot of indirection there to save me some boilerplate, you don’t have to over-engineer things to that extent, so don’t be intimidated. If you need help understanding I’d be happy to explain, but the main point is using homeConfigurations.