mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos/lib: add node exporter ethtool and systemd
This commit is contained in:
parent
7b988b920f
commit
543ae973ba
2 changed files with 5 additions and 2 deletions
|
@ -119,7 +119,10 @@ in {
|
||||||
services = {
|
services = {
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
fwupd.enable = true;
|
fwupd.enable = true;
|
||||||
prometheus.exporters.node.enable = true;
|
prometheus.exporters.node = {
|
||||||
|
enable = true;
|
||||||
|
enabledCollectors = ["ethtool" "systemd"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
|
|
|
@ -250,7 +250,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# Tailscale readiness and DNS tweaks.
|
# Tailscale readiness and DNS tweaks.
|
||||||
systemd.network.wait-online.ignoredInterfaces = ["ts0"];
|
systemd.network.wait-online.ignoredInterfaces = [ "ts0" ];
|
||||||
|
|
||||||
systemd.services.tailscaled.after =
|
systemd.services.tailscaled.after =
|
||||||
[ "network-online.target" "systemd-resolved.service" ];
|
[ "network-online.target" "systemd-resolved.service" ];
|
||||||
|
|
Loading…
Reference in a new issue