From e8ad5ae2caa58787a156a93b1010e35fd42c31ed Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 10 Dec 2023 14:46:11 -0800 Subject: [PATCH] Try setting ReadWritePaths... --- lib/fudo/grafana.nix | 2 +- lib/fudo/local-network.nix | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 = {