add secrets-subscriber service, make hostapd use it

This commit is contained in:
Daniel Barlow
2024-08-15 23:00:41 +01:00
parent d79a941504
commit e2c883356c
6 changed files with 76 additions and 22 deletions

View File

@@ -177,16 +177,6 @@ in rec {
};
};
services.restart-on-change = longrun {
name = "wlan0-restart-on-change";
run = ''
${pkgs.watch-outputs}/bin/watch-outputs -r wlan0.link.hostapd ${config.services.secrets} wpa_passphrase
'';
dependencies = [
config.services.hostap-liminix
config.services.hostap-liminix5
];
};
services.bootstrap-dhcpc = svc.network.dhcp.client.build {
interface = config.services.wwan;