home/desktop: only crete ~/sync if osConfig.alyraffauf.services.syncthing.enable

This commit is contained in:
Aly Raffauf 2024-06-25 16:58:51 -04:00
parent 24a0a097d3
commit e86871ec23

View file

@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
osConfig,
pkgs, pkgs,
... ...
}: { }: {
@ -26,15 +27,16 @@
}; };
}; };
gtk.gtk3.bookmarks = [ gtk.gtk3.bookmarks =
"file://${config.xdg.userDirs.documents}" [
"file://${config.xdg.userDirs.download}" "file://${config.xdg.userDirs.documents}"
"file://${config.xdg.userDirs.music}" "file://${config.xdg.userDirs.download}"
"file://${config.xdg.userDirs.videos}" "file://${config.xdg.userDirs.music}"
"file://${config.xdg.userDirs.pictures}" "file://${config.xdg.userDirs.videos}"
"file://${config.home.homeDirectory}/src" "file://${config.xdg.userDirs.pictures}"
"file://${config.home.homeDirectory}/sync" "file://${config.home.homeDirectory}/src"
]; ]
++ lib.optional (osConfig.alyraffauf.services.syncthing.enable) "file://${config.home.homeDirectory}/sync";
xdg = { xdg = {
dataFile."backgrounds/".source = ../../files/wallpapers; dataFile."backgrounds/".source = ../../files/wallpapers;