nixos-config/initialize.nix

27 lines
630 B
Nix
Raw Normal View History

2021-07-20 18:28:12 -07:00
{ hostname, home-manager-package, pkgs, include-secrets ? true, ... }:
2021-02-25 12:45:50 -08: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")
(./. + "/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")
"${home-manager-package}/nixos"
2021-02-25 12:45:50 -08:00
];
2021-02-25 12:45:50 -08:00
config = {
instance = { hostname = hostname; };
2021-07-20 18:28:12 -07:00
fudo.secrets.enable = include-secrets;
2021-02-25 12:45:50 -08:00
};
}