29 lines
686 B
Nix
29 lines
686 B
Nix
{ hostname, home-manager-module, pkgs, include-secrets ? true, ... }:
|
|
|
|
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 = { hostname = hostname; };
|
|
|
|
nixpkgs.pkgs = pkgs;
|
|
|
|
fudo.secrets.enable = include-secrets;
|
|
};
|
|
}
|