Simon Bruder
10b8d432d5
This applies the REUSE specification to the repository, so the licensing information can be tracked for every file individually.
16 lines
455 B
Nix
16 lines
455 B
Nix
# SPDX-FileCopyrightText: 2020-2021 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ config, ... }:
|
|
{
|
|
services.prometheus.exporters.node = {
|
|
enable = config.sbruder.wireguard.home.enable;
|
|
listenAddress = config.sbruder.wireguard.home.address;
|
|
enabledCollectors = [ "systemd" ];
|
|
disabledCollectors = [ "rapl" ];
|
|
};
|
|
|
|
systemd.services.prometheus-node-exporter.after = [ "wireguard-wg-home.service" ];
|
|
}
|