Commit 4bc62309a430
Changed files (2)
systems
common
services
systems/common/services/bind.nix
@@ -1,4 +1,4 @@
-{ lib, globals, ... }:
+{ globals, ... }:
{
# FIXME move the "networks" to globals
services.bind = {
@@ -13,6 +13,6 @@
cacheNetworks = [
"127.0.0.0/8"
] ++ globals.net.dns.cacheNetworks;
- zones = globals.net.dns.zones;
+ inherit (globals.net.dns) zones;
};
}
systems/common/services/prometheus-exporters-node.nix
@@ -1,4 +1,5 @@
-{ lib, config, ... }: {
+{ lib, config, ... }:
+{
options = {
prometheus-exporters-node.collectors = lib.mkOption {
type = lib.types.listOf lib.types.str;
@@ -22,7 +23,7 @@
enable = true;
port = 9000;
enabledCollectors = config.prometheus-exporters-node.collectors;
- extraFlags = config.prometheus-exporters-node.extraFlags;
+ inherit (config.prometheus-exporters-node) extraFlags;
};
};
}