nixos-config/initialize.nix

29 lines
589 B
Nix

{ hostname, profile, domain, site, home-manager-package, ... }:
{
imports = [
./lib
./config
./packages
(./. + "/config/hardware/${hostname}.nix")
(./. + "/config/hosts/${hostname}.nix")
(./. + "/config/profiles/${profile}.nix")
(./. + "/config/domains/${domain}.nix")
(./. + "/config/sites/${site}.nix")
(import "${home-manager-package}/nixos")
];
config = {
instance = { hostname = hostname; };
fudo.hosts."${hostname}" = {
domain = domain;
hostname = hostname;
site = site;
profile = profile;
};
};
}