25 lines
515 B
Nix
25 lines
515 B
Nix
{ hostname, site, domain, profile, build-timestamp, ... }:
|
|
|
|
let
|
|
# Get info on this host so we know what to load
|
|
config-dir = ./. + "/config";
|
|
|
|
in {
|
|
imports = [
|
|
./lib
|
|
./config
|
|
|
|
(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)
|
|
];
|
|
|
|
config = {
|
|
instance = {
|
|
inherit hostname build-timestamp;
|
|
};
|
|
};
|
|
}
|