mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
dbus: only create the parent directory if there are packages to symlink
This commit is contained in:
committed by
Matthieu Coudron
parent
773170b447
commit
167452eb4c
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user