programs: ensure things which depend on dbus are ordered after it
This commit is contained in:
parent
9ba8ff738b
commit
3b73773169
|
@ -223,6 +223,13 @@ let
|
|||
acts as noop for root-enabled packages.
|
||||
see `sane.users.<user>.services` for options;
|
||||
'';
|
||||
apply = lib.mapAttrs (svcName: svcCfg:
|
||||
# make every service whose program wants a dbus session actually depend on the dbus service,
|
||||
# to ensure ordering
|
||||
svcCfg // lib.optionalAttrs (svcName != "dbus" && builtins.elem "user" config.sandbox.whitelistDbus) {
|
||||
depends = [ "dbus" ];
|
||||
}
|
||||
);
|
||||
};
|
||||
buildCost = mkOption {
|
||||
type = types.enum [ 0 1 2 3 ];
|
||||
|
|
Loading…
Reference in New Issue
Block a user