From 8462a15aa66c31659d90d2e181a57deef6058a47 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 25 Jun 2024 19:17:54 -0400 Subject: [PATCH] home/desktop: check if syncthing is enabled and the username matches making ~/sync bookmark --- homeManagerModules/desktop/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/desktop/default.nix b/homeManagerModules/desktop/default.nix index 44958ac6..4f462138 100644 --- a/homeManagerModules/desktop/default.nix +++ b/homeManagerModules/desktop/default.nix @@ -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;