new package watch-outputs and example of its use

This commit is contained in:
Daniel Barlow
2024-08-14 22:58:17 +01:00
parent 2f82e0dab8
commit d79a941504
17 changed files with 172 additions and 0 deletions

View File

@@ -177,6 +177,17 @@ 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;
dependencies = [ config.services.hostname ];