nixos-config/initialize.nix

30 lines
621 B
Nix

{ hostname, site, domain, profile, build-timestamp, ... }:
{ config, lib, pkgs, ... }:
let
# Get info on this host so we know what to load
config-dir = ./. + "/config";
in {
imports = [
./lib
./config
#home-manager-module
(config-dir + /hardware/${hostname}.nix)
(config-dir + /host-config/${hostname}.nix)
(config-dir + /profile-config/${profile}.nix)
(config-dir + /domain-config/${domain}.nix)
(config-dir + /site-config/${site}.nix)
];
config = {
instance = {
inherit hostname site domain profile build-timestamp;
};
nixpkgs.pkgs = pkgs;
};
}