because they’re lazily evaluated anyway, and then call the same flake with nixos-rebuild on linux and darwin-rebuild in mac.
But when I add darwin to the inputs, and run for a linux system, I get the following error:
error: 'outputs' at /nix/.../flake.nix:27:13 called with unexpected argument 'darwin'
So I’m still stuck with a different flake for darwin; for synergy I’m just importing the user specific HM config part via outputs/home-conf.nix which then calls all the user’s packages/services/programs via imports, to get the “same” settings for my user across systems. (System-specifics are selected with conditional imports).
Is anyone running multi-platform configs from one flake; how to achieve that?
The objective is to have one flake and all systems/users imported from nix expressions in respective subdirs, to leverage sharing of common settings without duplication.