nixos-config/initialize.nix

25 lines
515 B
Nix
Raw Normal View History

{ hostname, site, domain, profile, build-timestamp, ... }:
2021-02-25 12:45:50 -08:00
let
2021-09-07 15:39:45 -07:00
# Get info on this host so we know what to load
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
(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-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
};
}