This will allow other modules to cross-reference which hosts exist on
which system.
My main use-case is to automatically declare home-manager configuration
for the home configuration of NixOS hosts.
I also include Darwin in case I ever want to use that in the future,
though that is unlikely for the moment.
We can only do this now that every profile has been migrated, otherwise
we would get errors about undeclared modules... It's not perfect, but
it's good enough.
This should define modules that are identical, or very similar.
The driving force is to be able to use `my.profiles` on home-manager and NixOS
without repeating myself.
In the future I might migrate other modules, such as `nixos/system/nix`...
2025-07-07 15:08:02 +00:00
7 changed files with 10 additions and 17 deletions