2
0

bundles depend on controlled services if any of their contents do

This commit is contained in:
2025-11-03 19:12:07 +00:00
parent d3b99aba96
commit 5da61c6d31
+6 -1
View File
@@ -61,7 +61,12 @@ let
flatDeps = s: [ s ] ++ concatMap flatDeps (deps s);
allServices = unique (concatMap flatDeps (builtins.attrValues config.services));
isDependentOnControlled =
s: isControlled s || (lib.lists.any isDependentOnControlled s.dependencies);
let inherit (lib.lists) any;
in s:
isControlled s ||
(any isDependentOnControlled s.dependencies) ||
((s ? contents) &&
(any isDependentOnControlled s.contents));
# all controlled services depend on this oneshot, which
# makes a list of them so we can identify them at runtime