move some secret-watching stuff from hostapd to secrets

This commit is contained in:
Daniel Barlow
2024-08-20 21:49:11 +01:00
parent 97defc2076
commit 264d83c98d
3 changed files with 25 additions and 28 deletions

View File

@@ -37,16 +37,9 @@ in {
};
};
subscriber = config.system.callService ./subscriber.nix {
watch = {
service = mkOption {
description = "secrets service to subscribe to";
type = liminix.lib.types.service;
};
paths = mkOption {
description = "list of output paths we are interested in";
example = ["wan/l2tp" "wifi/wlan5"];
type = types.listOf types.str;
};
watch = mkOption {
description = "secrets paths to subscribe to";
type = types.listOf types.attrs;
};
service = mkOption {
description = "subscribing service that will receive notification";