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:
parent
7793ab42da
commit
ccc0fc97fe
1 changed files with 6 additions and 4 deletions
10
flake.nix
10
flake.nix
|
@ -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 ];
|
||||||
|
|
Loading…
Reference in a new issue