home/desktop: check if syncthing is enabled and the username matches making ~/sync bookmark

This commit is contained in:
Aly Raffauf 2024-06-25 19:17:54 -04:00
parent db95583b4f
commit 8462a15aa6

View file

@ -36,7 +36,10 @@
"file://${config.xdg.userDirs.pictures}"
"file://${config.home.homeDirectory}/src"
]
++ lib.optional (osConfig.alyraffauf.services.syncthing.enable) "file://${config.home.homeDirectory}/sync";
++ lib.optional (
osConfig.alyraffauf.services.syncthing.enable
&& (osConfig.alyraffauf.services.syncthing.user == config.home.username)
) "file://${config.home.homeDirectory}/sync";
xdg = {
dataFile."backgrounds/".source = ../../files/wallpapers;