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;