network/nix/nixos-module/default.nix

21 lines
415 B
Nix
Raw Normal View History

2021-03-22 20:25:50 +01:00
{ config, lib, ... }:
2021-03-19 22:55:48 +01:00
let
inherit (config.networking) hostName;
inherit (lib) optional;
2021-03-22 20:25:50 +01:00
hostConfig = lib.config.site.hosts.${hostName};
in {
2021-03-19 22:55:48 +01:00
imports = [
2021-03-22 21:32:55 +01:00
{ 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
}