2021-07-20 18:28:12 -07:00
|
|
|
{ hostname, home-manager-package, pkgs, include-secrets ? true, ... }:
|
2021-02-25 12:45:50 -08:00
|
|
|
|
2021-04-07 14:03:52 -07:00
|
|
|
let
|
|
|
|
host-config = import (./. + "/config/hosts/${hostname}.nix");
|
|
|
|
|
|
|
|
in {
|
2021-02-25 12:45:50 -08:00
|
|
|
imports = [
|
|
|
|
./lib
|
|
|
|
./config
|
|
|
|
./packages
|
|
|
|
|
|
|
|
(./. + "/config/hardware/${hostname}.nix")
|
2021-04-07 14:03:52 -07:00
|
|
|
(./. + "/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")
|
2021-02-26 07:30:38 -08:00
|
|
|
|
2021-04-18 23:35:16 -07:00
|
|
|
"${home-manager-package}/nixos"
|
2021-02-25 12:45:50 -08:00
|
|
|
];
|
2021-02-26 07:30:38 -08:00
|
|
|
|
2021-02-25 12:45:50 -08:00
|
|
|
config = {
|
2021-02-26 07:30:38 -08:00
|
|
|
instance = { hostname = hostname; };
|
2021-07-20 18:28:12 -07:00
|
|
|
|
|
|
|
fudo.secrets.enable = include-secrets;
|
2021-02-25 12:45:50 -08:00
|
|
|
};
|
2021-02-26 07:30:38 -08:00
|
|
|
}
|