From e86871ec23a8c254279d1f04caa50d5d50e36751 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 25 Jun 2024 16:58:51 -0400 Subject: [PATCH] home/desktop: only crete ~/sync if osConfig.alyraffauf.services.syncthing.enable --- homeManagerModules/desktop/default.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/homeManagerModules/desktop/default.nix b/homeManagerModules/desktop/default.nix index 8d0a2022..44958ac6 100644 --- a/homeManagerModules/desktop/default.nix +++ b/homeManagerModules/desktop/default.nix @@ -1,6 +1,7 @@ { config, lib, + osConfig, pkgs, ... }: { @@ -26,15 +27,16 @@ }; }; - gtk.gtk3.bookmarks = [ - "file://${config.xdg.userDirs.documents}" - "file://${config.xdg.userDirs.download}" - "file://${config.xdg.userDirs.music}" - "file://${config.xdg.userDirs.videos}" - "file://${config.xdg.userDirs.pictures}" - "file://${config.home.homeDirectory}/src" - "file://${config.home.homeDirectory}/sync" - ]; + gtk.gtk3.bookmarks = + [ + "file://${config.xdg.userDirs.documents}" + "file://${config.xdg.userDirs.download}" + "file://${config.xdg.userDirs.music}" + "file://${config.xdg.userDirs.videos}" + "file://${config.xdg.userDirs.pictures}" + "file://${config.home.homeDirectory}/src" + ] + ++ lib.optional (osConfig.alyraffauf.services.syncthing.enable) "file://${config.home.homeDirectory}/sync"; xdg = { dataFile."backgrounds/".source = ../../files/wallpapers;