flake.nix: use imports for auto-import of hosts

This makes the auto-importing of hosts obvious and explicitly indicates
how the options would end up getting merged.
This commit is contained in:
Pacman99 2021-05-13 17:03:51 -07:00
parent 7793ab42da
commit ccc0fc97fe

View File

@ -65,10 +65,12 @@
./modules/customBuilds.nix
];
};
hosts = nixos.lib.mkMerge [
(devlib.lib.importers.importHosts ./hosts)
{ /* set host specific properties here */ }
];
imports = [ (devlib.lib.importers.importHosts ./hosts) ];
hosts = {
/* set host specific properties here */
NixOS = { };
};
profiles = [ ./profiles ./users ];
suites = { profiles, users, ... }: with profiles; {
base = [ core users.nixos users.root ];