Files
nixos-config/initialize.nix
T
2021-09-04 14:17:51 -07:00

29 lines
744 B
Nix

{ hostname, home-manager-package, pkgs, fudo-pkgs, include-secrets ? true, ... }:
let
host-config = import (./. + "/config/hosts/${hostname}.nix");
in {
imports = [
./lib
./config
# Without turning this into a path, there's a "lastModified missing" error
"${fudo-pkgs}/"
"${home-manager-package}/nixos"
] ++ [
(./. + "/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; };
fudo.secrets.enable = include-secrets;
};
}