1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-2: add apcupsd_exporter

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-06-12 18:40:54 -04:00
parent c3182c889f
commit d08e8f2584
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94

View file

@ -9,6 +9,11 @@ let
unstable = import <unstable> { };
in {
disabledModules = [
# Replaced with unstable for additional exporters.
"services/monitoring/prometheus/exporters.nix"
];
imports = [
# Hardware configuration and quirks.
<nixos-hardware/pcengines/apu>
@ -32,14 +37,16 @@ in {
./traefik.nix
./wgipamd.nix
# Out-of-tree modules.
# Unstable or out-of-tree modules.
<unstable/nixos/modules/services/monitoring/prometheus/exporters.nix>
./lib/modules/wireguard_exporter.nix
./lib/modules/wgipamd.nix
];
# Overlays for out-of-tree packages.
# Overlays for unstable and out-of-tree packages.
nixpkgs.overlays = [
(self: super: {
prometheus-apcupsd-exporter = unstable.prometheus-apcupsd-exporter;
wireguard_exporter =
super.callPackage ./lib/pkgs/wireguard_exporter.nix { };
})
@ -82,7 +89,6 @@ in {
flashrom
# Unstable and out-of-tree packages.
unstable.corerad
wireguard_exporter
];
@ -121,6 +127,8 @@ in {
permitRootLogin = "no";
};
prometheus.exporters.apcupsd.enable = true;
tftpd = {
enable = true;
path = "/var/lib/tftp";