24 lines
497 B
Nix
24 lines
497 B
Nix
{ lib, pkgs, hostname, site, domain, profile, build-timestamp, ... }:
|
|
|
|
with lib;
|
|
let
|
|
config-dir = ./config;
|
|
|
|
in {
|
|
imports = [
|
|
./config
|
|
] ++ (filter pathExists [
|
|
(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;
|
|
};
|
|
};
|
|
}
|