18 lines
356 B
Nix
18 lines
356 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;
|
|
};
|
|
}
|