2021-10-11 15:19:10 -07:00
|
|
|
{ hostname, site, domain, profile, build-timestamp, ... }:
|
2021-02-25 12:45:50 -08:00
|
|
|
|
2021-04-07 14:03:52 -07:00
|
|
|
let
|
2021-09-07 15:39:45 -07:00
|
|
|
# Get info on this host so we know what to load
|
2021-10-07 19:20:43 -07:00
|
|
|
config-dir = ./. + "/config";
|
2021-10-04 12:23:46 -07:00
|
|
|
|
|
|
|
in {
|
2021-02-25 12:45:50 -08:00
|
|
|
imports = [
|
|
|
|
./lib
|
|
|
|
./config
|
2021-09-07 15:39:45 -07:00
|
|
|
|
2021-10-07 19:20:43 -07:00
|
|
|
(config-dir + /hardware/${hostname}.nix)
|
|
|
|
(config-dir + /host-config/${hostname}.nix)
|
|
|
|
(config-dir + /profile-config/${profile}.nix)
|
|
|
|
(config-dir + /domain-config/${domain}.nix)
|
|
|
|
(config-dir + /site-config/${site}.nix)
|
2021-02-25 12:45:50 -08:00
|
|
|
];
|
2021-02-26 07:30:38 -08:00
|
|
|
|
2021-02-25 12:45:50 -08:00
|
|
|
config = {
|
2021-09-30 08:40:47 -07:00
|
|
|
instance = {
|
2021-10-08 15:26:19 -07:00
|
|
|
inherit hostname build-timestamp;
|
2021-09-30 08:40:47 -07:00
|
|
|
};
|
2021-02-25 12:45:50 -08:00
|
|
|
};
|
2021-02-26 07:30:38 -08:00
|
|
|
}
|