switch to iw

This commit is contained in:
Robin Appelman 2024-12-11 19:26:04 +01:00
commit 8cd4806dc2
4 changed files with 19 additions and 13 deletions

View file

@ -8,7 +8,7 @@ with lib; let
format = pkgs.formats.toml { };
configFile = format.generate "wifi-prometheus-exporter-config.toml" {
ssh = {
inherit (cfg.ssh) address;
inherit (cfg.ssh) address user;
key_file = "$CREDENTIALS_DIRECTORY/ssh_key";
pubkey_file = "$CREDENTIALS_DIRECTORY/ssh_pub_key";
};
@ -33,6 +33,10 @@ in
type = types.str;
description = "ssh address of the access point";
};
user = mkOption {
type = types.str;
description = "ssh user";
};
keyFile = mkOption {
type = types.str;
description = "path to ssh key file";