forked from zentralwerk/network
22 lines
487 B
Nix
22 lines
487 B
Nix
{ self, config, lib, ... }:
|
|
|
|
let
|
|
inherit (config.networking) hostName;
|
|
inherit (lib) optional;
|
|
|
|
hostConfig = self.lib.config.site.hosts.${hostName};
|
|
in
|
|
builtins.trace (lib.generators.toPretty {} self.lib.config) {
|
|
imports = [
|
|
#{ config = self.lib.config; }
|
|
./defaults.nix
|
|
../lib/config/options.nix
|
|
];
|
|
# ++ optional (hostConfig.role == "server") [
|
|
# #./lxc-containers.nix
|
|
# ]
|
|
# ++ optional (hostConfig.role == "container") [
|
|
# ./container.nix
|
|
# ];
|
|
}
|