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 ./modules/customBuilds.nix
]; ];
}; };
hosts = nixos.lib.mkMerge [
(devlib.lib.importers.importHosts ./hosts) imports = [ (devlib.lib.importers.importHosts ./hosts) ];
{ /* set host specific properties here */ } hosts = {
]; /* set host specific properties here */
NixOS = { };
};
profiles = [ ./profiles ./users ]; profiles = [ ./profiles ./users ];
suites = { profiles, users, ... }: with profiles; { suites = { profiles, users, ... }: with profiles; {
base = [ core users.nixos users.root ]; base = [ core users.nixos users.root ];