diff --git a/lib/fudo/grafana.nix b/lib/fudo/grafana.nix index 2581f1d..d05dc72 100644 --- a/lib/fudo/grafana.nix +++ b/lib/fudo/grafana.nix @@ -145,7 +145,7 @@ in { }; datasources = mkOption { - type = attrsOf (submodule datasourceOpts); + type = listOf (submodule datasourceOpts); description = "A list of datasources supplied to Grafana."; default = { }; }; diff --git a/lib/fudo/local-network.nix b/lib/fudo/local-network.nix index 3473763..1af8611 100644 --- a/lib/fudo/local-network.nix +++ b/lib/fudo/local-network.nix @@ -126,6 +126,13 @@ in { hostname ]) other-hosts; + systemd = { + tmpfiles.rules = [ "d ${cfg.state-directory} 0700 root root - -" ]; + + services.kea-dhcp4-server.serviceConfig.ReadWritePaths = + [ cfg.state-directory ]; + }; + services.kea.dhcp4 = { enable = true; settings = {