make sure grafana and influxdb fully boot up after reboot on bolty
This commit is contained in:
parent
3e291d27f8
commit
01a2edd5b8
3 changed files with 27 additions and 2 deletions
|
@ -30,6 +30,16 @@ in {
|
||||||
wants = [ "tailscale-cert.service" ];
|
wants = [ "tailscale-cert.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.grafana = {
|
||||||
|
after = [
|
||||||
|
"network.target"
|
||||||
|
"network-online.target"
|
||||||
|
"tailscaled.service"
|
||||||
|
"tailscale-cert.service"
|
||||||
|
"tailscale-auth.service"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = path;
|
dataDir = path;
|
||||||
|
|
|
@ -30,6 +30,16 @@ in {
|
||||||
wants = [ "tailscale-cert.service" ];
|
wants = [ "tailscale-cert.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.influxdb2 = {
|
||||||
|
after = [
|
||||||
|
"network.target"
|
||||||
|
"network-online.target"
|
||||||
|
"tailscaled.service"
|
||||||
|
"tailscale-cert.service"
|
||||||
|
"tailscale-auth.service"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
services.influxdb2 = {
|
services.influxdb2 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -54,8 +54,13 @@ in {
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.nameservers =
|
networking.nameservers = [
|
||||||
[ "9.9.9.9" "2620:fe::fe" "149.112.112.112" "2620:fe::9" ];
|
"100.100.100.100"
|
||||||
|
"9.9.9.9"
|
||||||
|
"2620:fe::fe"
|
||||||
|
"149.112.112.112"
|
||||||
|
"2620:fe::9"
|
||||||
|
];
|
||||||
|
|
||||||
networking.hosts = { "10.11.99.1" = [ "remarkable" ]; };
|
networking.hosts = { "10.11.99.1" = [ "remarkable" ]; };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue