blob: f2110eb9a210b4a3e353fb4bbe36ff34b582a164 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{
system,
pkgs,
nixpkgs_as_input,
# configs
defaultModules,
defaultSpecialArgs,
...
}: let
generateHost = name: {
name = "${name}";
value = nixpkgs_as_input.lib.nixosSystem {
inherit system pkgs;
specialArgs = defaultSpecialArgs;
modules =
[
../../hosts/${name}
]
++ defaultModules;
};
};
# FIXME: These need to stay in this position for the install script
hosts = ["tiamat" "apzu"];
inactiveHosts = ["mammun" "lahmu"];
generatedHosts = builtins.listToAttrs (builtins.map generateHost hosts);
in
generatedHosts
|