Our great sponsors
-
nix-starter-configs
Simple and documented config templates to help you get started with NixOS + home-manager + flakes. All the boilerplate you need!
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Personally, for both NixOS and home-manager, I keep a common nix file each that holds configurations that I want on all systems, and then add a short per-system config for each host. Feel free to check out my setup where I use NixOS hosts using home-manager as submodule as well as standalone home-manager hosts: https://github.com/Swarsel/dotfiles
Is this an example of what you mean (home-manager is defined as part of the flake): https://github.com/Misterio77/nix-starter-configs/blob/main/minimal/flake.nix