unbreak pppoe ci job

This commit is contained in:
Daniel Barlow 2024-09-06 00:29:42 +01:00
parent cc47515cf8
commit e0725489ca
3 changed files with 5 additions and 4 deletions

View File

@ -78,6 +78,6 @@ let
inherit dependencies;
};
in svc.secrets.subscriber.build {
watch = [ username password ];
watch = lib.filter (n: typeOf n=="lambda") [ username password ];
inherit service;
}

View File

@ -25,6 +25,7 @@ let
inherit description;
};
in {
imports = [ ../secrets ];
options = {
system.service.pppoe = mkOption {
type = liminix.lib.types.serviceDefn;

View File

@ -5,7 +5,7 @@
let
inherit (liminix.services) oneshot longrun;
inherit (builtins) length head toString;
inherit (lib) unique optional;
inherit (lib) unique optional optionals;
inherit (service) name;
watched-services = unique (map (f: f "service") watch);
@ -46,6 +46,6 @@ in service.overrideAttrs(o: {
buildInputs = (lim.orEmpty o.buildInputs) ++
optional (watched-service != null) watcher;
dependencies = (lim.orEmpty o.dependencies) ++
optional (watched-service != null) watcher ++
optional (watched-service != null) watched-service;
optionals (watched-service != null)
[ watcher watched-service ];
})