Simon Bruder
db1348014e
MPV is disabled since the override options no longer work. This also applies updated formatting.
20 lines
481 B
Nix
20 lines
481 B
Nix
{ config, ... }:
|
|
let
|
|
vpnNetRanges = config.networking.wireguard.interfaces.wg-home.ips;
|
|
vpnNetRange = builtins.elemAt vpnNetRanges 0;
|
|
vpnAddress = builtins.elemAt (builtins.split "/" vpnNetRange) 0;
|
|
in
|
|
{
|
|
imports = [
|
|
../wireguard/home.nix
|
|
];
|
|
|
|
services.prometheus.exporters.node = {
|
|
enable = true;
|
|
listenAddress = vpnAddress;
|
|
enabledCollectors = [ "systemd " ];
|
|
};
|
|
|
|
systemd.services.prometheus-node-exporter.after = [ "wireguard-wg-home.service" ];
|
|
}
|