mirror of
https://codeberg.org/icewind/wifi-prometheus-exporter.git
synced 2026-06-03 16:44:11 +02:00
move module
This commit is contained in:
parent
84c096372e
commit
3ee65f7ca4
2 changed files with 4 additions and 4 deletions
|
|
@ -21,9 +21,9 @@
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: {
|
||||||
imports = [ ./module.nix ];
|
imports = [ ./module.nix ];
|
||||||
config = lib.mkIf config.services.wifi-prometheus-exporter.enable {
|
config = {
|
||||||
nixpkgs.overlays = [ outputs.overlays.default ];
|
nixpkgs.overlays = [ outputs.overlays.default ];
|
||||||
services.wifi-prometheus-exporter.package = lib.mkDefault pkgs.wifi-prometheus-exporter;
|
services.prometheus.exporters.wifi.package = lib.mkDefault pkgs.wifi-prometheus-exporter;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.services.wifi-prometheus-exporter;
|
cfg = config.services.prometheus.exporters.wifi;
|
||||||
format = pkgs.formats.toml { };
|
format = pkgs.formats.toml { };
|
||||||
configFile = format.generate "wifi-prometheus-exporter-config.toml" {
|
configFile = format.generate "wifi-prometheus-exporter-config.toml" {
|
||||||
ssh = {
|
ssh = {
|
||||||
|
|
@ -23,7 +23,7 @@ with lib; let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.services.wifi-prometheus-exporter = {
|
options.services.prometheus.exporters.wifi = {
|
||||||
enable = mkEnableOption "WiFi prometheus exporter";
|
enable = mkEnableOption "WiFi prometheus exporter";
|
||||||
|
|
||||||
ssh = mkOption {
|
ssh = mkOption {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue