dbus: only create the parent directory if there are packages to symlink
This commit is contained in:
parent
773170b447
commit
167452eb4c
1 changed files with 8 additions and 6 deletions
|
|
@ -24,12 +24,14 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
xdg.dataFile."dbus-1/services" = {
|
||||
recursive = true;
|
||||
source = pkgs.symlinkJoin {
|
||||
name = "user-dbus-services";
|
||||
paths = cfg.packages;
|
||||
stripPrefix = "/share/dbus-1/services";
|
||||
xdg.dataFile = lib.mkIf (cfg.packages != [ ]) {
|
||||
"dbus-1/services" = {
|
||||
recursive = true;
|
||||
source = pkgs.symlinkJoin {
|
||||
name = "user-dbus-services";
|
||||
paths = cfg.packages;
|
||||
stripPrefix = "/share/dbus-1/services";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue