31 lines
708 B
Nix
31 lines
708 B
Nix
{ hostname, pkgs, build-timestamp, fudo-secrets ? null, ... }:
|
|
|
|
let
|
|
# Get info on this host so we know what to load
|
|
host-config = import (./. + "/config/hosts/${hostname}.nix");
|
|
|
|
in {
|
|
imports = [
|
|
./lib
|
|
./config
|
|
|
|
#home-manager-module
|
|
|
|
(./. + "/config/hardware/${hostname}.nix")
|
|
(./. + "/config/host-config/${hostname}.nix")
|
|
(./. + "/config/profile-config/${host-config.profile}.nix")
|
|
(./. + "/config/domain-config/${host-config.domain}.nix")
|
|
(./. + "/config/site-config/${host-config.site}.nix")
|
|
];
|
|
|
|
config = {
|
|
instance = {
|
|
inherit hostname build-timestamp;
|
|
};
|
|
|
|
nixpkgs.pkgs = pkgs;
|
|
|
|
fudo.secrets.enable = fudo-secrets != null;
|
|
};
|
|
}
|