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