network/nix/nixos-module/default.nix

22 lines
487 B
Nix
Raw Normal View History

{ self, config, lib, ... }:
2021-03-19 22:55:48 +01:00
let
inherit (config.networking) hostName;
inherit (lib) optional;
hostConfig = self.lib.config.site.hosts.${hostName};
2021-03-19 22:55:48 +01:00
in
builtins.trace (lib.generators.toPretty {} self.lib.config) {
2021-03-19 22:55:48 +01:00
imports = [
#{ config = self.lib.config; }
2021-03-19 22:55:48 +01:00
./defaults.nix
../lib/config/options.nix
2021-03-19 22:55:48 +01:00
];
# ++ optional (hostConfig.role == "server") [
# #./lxc-containers.nix
# ]
# ++ optional (hostConfig.role == "container") [
# ./container.nix
# ];
2021-03-19 22:55:48 +01:00
}